PDA

View Full Version : search from the search field on my hompage


sbrazil
09-24-2004, 11:54 PM
thanks, one more quick question. How do I get it to search from the search field on my hompage, as it sends you to a template then you have to re-enter the search query again in the template?

I have this as the hidden fields

form action='search/search.php' method='get'>
<input type='hidden' name='template_demo' value='./templates/phpdig.html'/>
<input type='hidden' name='site' value='0'/>
<input type='hidden' name='path' value=''/>
<input type='hidden' name='result_page' value='search/search.php'/

do I have to edit the config file? I did do this but it still managed to go to the template file first before searching.

I realise I will have to make my own template which I'm working on I just want it to search from the hompage without having to enter the details again. Obviously having a search again box on the results page?

Thanks

Simon

vinyl-junkie
09-25-2004, 07:39 AM
Have a look at this thread (http://www.phpdig.net/forum/showthread.php?t=839). It should answer all your questions. :)