Log in

View Full Version : Search form help



killerchutney
02-18-2007, 02:01 PM
Im using sphider search on my site, but I don't know how to make a form on my index for it. I have tryed using a php include (only to be welcomed with loads of errors) and a form that does not work. I know that I need to use
action="http://www.killerchutney.co.uk/new/search/search.php"
but I dont know how to make the form work. An example search URL would be:

http://www.killerchutney.co.uk/new/search/search.php?query=whatever+you+want&search=1

Please help. Thanks.

killerchutney
02-18-2007, 04:18 PM
Ok, I have almost done it. but %26 appears in the URL, this stops it from working. Any ideas?
here is the code im using:
<FORM METHOD="get" ACTION="http://www.killerchutney.co.uk/new/search/search.php">
<INPUT TYPE="text" NAME="query">
<INPUT TYPE="hidden" NAME="&amp;search" VALUE="1" >

</FORM>


EDIT: found the problem. here is the fixed code:
<FORM METHOD="get" ACTION="http://www.killerchutney.co.uk/new/search/search.php">
<INPUT TYPE="text" NAME="query">
<INPUT TYPE="hidden" NAME="search" VALUE="1" >

</FORM>