PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Search box on every page? (http://www.phpdig.net/forum/showthread.php?t=2096)

chrisdgreen 07-29-2005 06:34 AM

Search box on every page?
 
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:
HTML Code:

<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
 
Thanks for that !


All times are GMT -8. The time now is 11:11 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.