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

Problem with search.cgi ?

Quote Reply
Problem with search.cgi ?
Hi,

I've a problem to search the links. When I enter a keyword, Links says it finds xx categories, and xx sites.
But when I want to go to the second, the third, or another page of results different from the first, Links displays the search_error.html page.
I don't know why and where the problem is !!!
In my search_results.html ? In search.cgi ?
To see the problem you can go to http://www.vitavous.com/cgi-bin/search.cgi, and enter the keyword 'site' to have many results.
(The site is french).

Here is the part of search_results.html which shows the results of the search (in french too !) :

<p>Votre recherche dans l'annuaire de Vitavous a retourné <strong><%cat_hits%></strong> catégorie(s) et <strong><%link_hits%></strong> site(s).</p>
<%if next%>
<h2>Pages: <%next%></h2>
<%endif%>
<%if category_results%>
<h2>Catégories:</h2>
<ul><%category_results%></ul>
<%endif%>
<%if link_results%>
<h2>Sites</h2>
<%link_results%>
<%endif%>
<%if next%>
<h2>Pages: <%next%></h2>
<%endif%>

Can you help me please ?

Regards,
Gautier.

Quote Reply
Re: Problem with search.cgi ? In reply to
I just vistied that page. You have two search forms. The first has the problem you describe. The second does not. When I looked at your code, the only difference between the two forms I saw was the form action. They should both be set to 'GET', however I don't think that will fix the problem.

Happy Coding,

--Drew
http://www.FindingHim.com
Quote Reply
Re: Problem with search.cgi ? In reply to
It works !!!!

Thank you Junko, it works when I put a 'GET' instead a 'POST' !
I don't know how a 'GET' transformed itself as a 'POST', :-), strange no ???

Thank you Junko !

Regards,
Gautier.


Quote Reply
Re: Problem with search.cgi ? In reply to
I also had this problem. I think it has something to do with the way search.cgi parses the input from the form to the script. After i changed it all went well....

Andy

http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: Problem with search.cgi ? In reply to
It is because you need to GET the output and return it to the template whereas using POST would'nt do that.

(I think)

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: Problem with search.cgi ? In reply to
Sounds about right. Not really sure how Links 2 parses the data, but as long as it works, and we know how to make it work, i don't mind Cool

Andy

http://www.ace-installer.com
webmaster@Ace-installer.com