Gossamer Forum
Home : Products : Links 2.0 : Customization :

Next Hits Problem!

Quote Reply
Next Hits Problem!
Hi, I hope someone can help me with this problem. When I do a normal search query with the following code:

<form method="POST" action="/cgi-bin/search.cgi" method="GET">
<input type="hidden" name="type" value="keyword"><input type="hidden" name="bool"
value="and"><input type="hidden" name="mh" value="10">
<input TYPE="TEXT" NAME="query"
SIZE="20">
<input type="Submit" value="Search" name="B1">
</form>

And I get more than 10 results, but the "Next 10 Hits" link doesn't work! Instead it brings up the search_failure page when I know there are more results. (the exact location it brings me to is '/cgi-bin/search.cgi?&nh=1')

However, the code that is under "sub site_html_search_form {" uses:

<input type="hidden" name="mh" value="$next_hits">

instead of:

<input type="hidden" name="mh" value="10">

and it works in the search.cgi script! (for Next Hits, search.cgi takes me to '/cgi-bin/search.cgi?query=quake&mh=10&type=keyword&bool=and&nh=1', which is very different) Anyone know why this is happening and have a fix for it? Please help!

I have an idea the problem is happening in the search.cgi script, but I can't be sure.
Quote Reply
Re: Next Hits Problem! In reply to
 
Quote:
<form method="POST" action="/cgi-bin/search.cgi" method="GET">

You need to have method="GET" only. Using the post method won't work.

Cheers,

Alex
Quote Reply
Re: Next Hits Problem! In reply to
Why didnt I see that?! Thanks alot Alex!
Quote Reply
Re: Next Hits Problem! In reply to
Which is obviously why he had one of each Wink

------------------
Craig Antill
10 Tenths Motorsport (1.1) - www.Ten-Tenths.com/links/
THE Directory (2.0b3) - www.gardenbuildings.com/