I have a search form set up... First page is the search fields second page is the results... I really want the whole thing to be together so I thought the best way was just do a php include on the second page for the search page. The only thing is now each time the page loads it runs the search with no fields, so basically outputs everything in the database... Anyone have a better idea of how to do this?
The form above can be a separate file and included in the default case or can be echoed in the default case.
} //end switch
07-20-2007, 02:12 AM
Hi guys... I added the above code if (isset($_POST['submit']))
at the top of the search.php page, then on the results page I have my include but when you run the results page it srtill gives me all the results... any ideas?