Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Next Hits Error!

Quote Reply
Next Hits Error!
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.