Skip to main content.
home | support | download

Back to List Archive

Re: SWISH & Cookie ??

From: Roy Tennant <rtennant(at)>
Date: Tue Oct 06 1998 - 15:07:21 GMT
The way around this is to just move the "results" switch to the place
where you call SWISH-E and execute the search. So instead of something
like this:

open(SWISH, "$swish -w \"$query\" -m $results -f $index|");

you would do this:

open(SWISH, "$swish -w \"$query\" -m 0 -f $index|");

(just replace $results with 0). Then you can remove the hidden "results"
field from your form and it will work fine.

On Tue, 6 Oct 1998 wrote:

> Hi there,
> I have done the AutoSwish part and it is working fine.  but I found that
> cookie could not pick up type="hidden" since I want the users come back
> could find their last time search field.
> You know that SWISH automatically generated a form
> script as following:
> <FORM ACTION="/cgi-bin/swish-bin/" METHOD="POST">
> SIZE="50">
> <TR><TD><INPUT NAME="results" TYPE="hidden" VALUE="0">
> <TR ALIGN="CENTER"><TD><INPUT TYPE="submit" VALUE="Start Search">
> <INPUT TYPE="reset" VALUE="Clear Form">
> </FORM>
> </TABLE>
> </DIV>
> I could not exclude <INPUT NAME="results" TYPE="hidden" VALUE="0">
> otherwise SWISH search engine does not work.
> My cookie is working fine with other forms without type="hidden"
> I want to know I am on a right track or not. 
> Thank you for your help.
> David Wen
Received on Tue Oct 6 08:14:31 1998