PDA

View Full Version : Search box on every page?


chrisdgreen
07-29-2005, 06:34 AM
I want to have the search box on every page in the site, the problem is I have an index page at root and all other pages in a 'webpages' folder.

I have seen the example in the page comments for moving the search page to the root level how could I change it for pages in a subdirectory?

Thanks in advance

Chris

chrisdgreen
07-29-2005, 08:19 AM
Thought of a possible way - maybe

Having one search page and just a regular form pointing to the search on the others with hidden fields to simulate a phpdig query?

Charter
07-29-2005, 08:24 AM
You can add a search box to any webpage using the following HTML form:

<form action="http://www.YOURDOMAIN.COM/DIR/search.php" method="post">
<input type="text" name="query_string" value="">
<input type="submit" name="search" value="Go">
</form>

chrisdgreen
07-29-2005, 09:27 AM
Thanks for that !