The title pretty much says it all. The idea is that the first page the user will be presented with will be a search field which will then send information to the main page of the site which they will be redirected to after they enter a term to search for.
UPDATE: Alright, I think I figured out what I wanted to do. It appears that what I want is a simple redirect within index.php that pushes users to that search page I mentioned.
The main part of the site is all on index.php, with the only thing in search.php being a simple search field that gives index.php information. So I just redirect users from index.php to search.php when they first visit the site, and then after they enter the search they are sent to index.php.
Hope that sort of makes sense, and maybe even helps someone.
Assuming your
index.phppage required a querystring parameter ofsearch, you could use:You can only set headers before you have written to the output stream, so this must go before any plain text, echo statements etc.