View Single Post
Old 03-03-2004, 06:20 AM   #1
atticus1214
Green Mole
 
Join Date: Feb 2004
Posts: 2
"limit to" option on form page?

hi i just want to say that i am very impressed with preformance of this search engine. i had one question though. i have a sub navigation menu, on the menu i have add the search function as so:
PHP Code:
<form action='http://mywebsite.com/search/search.php' target="template_content" method='get'>
<
input type='hidden' name='template_demo' value=''/>
<
input type='hidden' name='site' value=''/>
<
input type='hidden' name='path' value=''/>
<
input type='hidden' name='result_page' value='search.php'/>
<
input class='liwords' type='text' name='query_string'/>  
<
input class='liwords' type='submit' name='search' value='Search'/>
</
form
what i would like to do is give the user the ablity to search the whole site (which it does at this point) or select "search this directory only" which would give results for the current folder and everything under. i know this option is avalible from the results page but i would like to give the option from the search prompt. i figure it has something to do with the script above labeled "name='path'" but i am unsure of the syntax. any support would be greatly appreciated.

thank you,
atticus1214

oh yeah - my search engine is on a different webhost, so relative path stuff doesn't really work.
(i dont really know what i'm talking about - relative path is like "../../foldername" right?)

Last edited by atticus1214; 03-03-2004 at 06:43 AM.
atticus1214 is offline   Reply With Quote