PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 07-29-2005, 06:34 AM   #1
chrisdgreen
Green Mole
 
Join Date: Jul 2005
Posts: 7
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 is offline   Reply With Quote
Old 07-29-2005, 08:19 AM   #2
chrisdgreen
Green Mole
 
Join Date: Jul 2005
Posts: 7
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?
chrisdgreen is offline   Reply With Quote
Old 07-29-2005, 08:24 AM   #3
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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>
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 07-29-2005, 09:27 AM   #4
chrisdgreen
Green Mole
 
Join Date: Jul 2005
Posts: 7
Thanks

Thanks for that !
chrisdgreen is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
move search code to just a box melinda How-to Forum 1 07-15-2006 12:05 PM
Adding search box to every page (cont'd) rogerh How-to Forum 1 10-11-2004 11:08 AM
search box? WebDiva 2.0 How-to Forum 3 08-19-2004 12:58 PM
Adding search box to every page Psycho1 How-to Forum 7 04-25-2004 08:04 AM
Search box on html page rafarspd How-to Forum 4 12-04-2003 06:37 AM


All times are GMT -8. The time now is 10:55 AM.


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