Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Passing Parameters through Swish-e to use in additional hyperlinks/forms

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Sun Dec 21 2008 - 02:31:38 GMT
Richard Byrne MRCVS Partner wrote on 12/16/08 4:02 AM:

> 
> We start the program that runs swish from a Unix shell script and pass the 
> search parameters from this script. As you can see from the snippet above we 
> have to enter the email address into the 'html form' created in swish before 
> we can email the indexed PDF to the recipient - we know broadly what is in 
> the file so don't need to read it.
> 
> Is there any way of including 1 or more 'dummy / user defined parameters' in 
> the swish-e shell script that are simply passed through the swish program ( 
> and ignored by it ) but are 'recoverable' and usable in the form snippet so 
> that one would not have to manually reenter the email address etc manually  -
>  you would just simply click on the Send button
> 
> e.g.
> --SNIP
>  <dd>$description
>         <HR>
> <form name="form1" method="post" action="/cgi-bin/email.pl">
> <input name="File" type="hidden" id="File" value="$this_result->
> {swishdocpath}">
> <input name="Email" type"hidden" id="Email" value="$this_result->
> {dummy_param_passedthroswish_emailaddress}">
> E-mail this file to $this_result->{dummy_param_passedthroswish_emailaddress}
> --SNIP

if you are using swish.cgi, I expect you could access the CGI object being used
and just grab the params from there. Your description of your shell script
confuses me, since I've only ever used swish.cgi directly as a CGI via Apache.

-- 
Peter Karman  .  http://peknet.com/  .  peter(at)not-real.peknet.com
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Sat Dec 20 21:26:16 2008