I have two php pages index.php and page2.php.
I want when the first time my website loads it will show index.php which has a search button in it.On clicking the submit button I want to show entire content of page2.php(which now I am showing on page2.php only) on index.php there by removing the need for page2.php.
I have two php pages index.php and page2.php. I want when the first time
Share
Change your form so that it reloads the same page:
Then include an if statement that checks to see if the form has already been submitted: