Results 1 to 2 of 2

Thread: Search form help

  1. #1
    Join Date
    Jan 2007
    Location
    Bournemouth, England
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Search form help

    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
    Code:
    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/s...+want&search=1

    Please help. Thanks.

  2. #2
    Join Date
    Jan 2007
    Location
    Bournemouth, England
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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:
    Code:
    <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:
    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>
    Last edited by killerchutney; 02-18-2007 at 05:15 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •