Question regarding Sphider search...

Discussion in 'HTML & Website Design' started by ian_batten, Mar 4, 2007.

  1. #1
    Hello all,
    Sorry for the noob question, but I guess I am just a noob in general :D
    Got sphider installed, and I have set the search box "form action" on (for example) 123.com, to point to "321.com/search.php". You see, the search page is on a different domain, so I have to point the function to that domain.
    However, it reaches the domain okay, but the search results do not work. For example, if I searched "cheese" on 123.com, it would direct me to 321.com/search.php...but the URL search ending would be incorrect. It would look like this:

    www.321.com/search.php?query2=cheese&search2=1

    However, it should look like:

    www.321.com/search.php?query=cheese&search=1

    WITHOUT the "2" after "query" and "search". Because of this added 2, it is just showing no search results on the result page.
    Does anyone know why this is happening?
    Thanks in advance!
     
    ian_batten, Mar 4, 2007 IP
  2. abdussamad

    abdussamad Active Member

    Messages:
    543
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    HAve you used the full url including "http://" in the form action? Would help if you could show us some code.
     
    abdussamad, Mar 4, 2007 IP
  3. ian_batten

    ian_batten Well-Known Member

    Messages:
    1,991
    Likes Received:
    106
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Good point, here is the code (example URL)

    <form action="http://www.321.com/search.php" method="get">
     
    ian_batten, Mar 4, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What about the server-side code?
     
    Dan Schulz, Mar 7, 2007 IP
  5. ian_batten

    ian_batten Well-Known Member

    Messages:
    1,991
    Likes Received:
    106
    Best Answers:
    0
    Trophy Points:
    185
    #5
    Which part of the server side code?
     
    ian_batten, Mar 10, 2007 IP