Re: [greenstone-users] Query string format

From Chaitra Rao
DateFri, 27 May 2005 15:49:38 +0530 (IST)
Subject Re: [greenstone-users] Query string format
In-Reply-To (20050527075008-GA9578-matai-cs-waikato-ac-nz)
Thanx John. I tried this code. It works!

Thanx again! :)


Regards,
Chaitra

On Fri, 27 May 2005, John R. McPherson wrote:

> On Fri, May 27, 2005 at 11:58:24AM +0530, Chaitra Rao wrote:
> > Hi Katherine,
> > Thank you for the response. I am able to get to the search page using
> > the following URL format:
> > http://web_address/library?a=q&c=coll_name&ct=l&qt=0&q=searchterm.
> >
> > Now, I want to be able to send a form request to this page from another
> > page. This doesn't work. I have written a javascript that does something
> > like:
> >
> > script{
> > document.form.action=http://web_address/library?a=q&c=coll_name&ct=l&qt=0&q=searchterm;
> > }
> >
> > When I do this the home page opens, instead ofthe search page. Can you
> > tell me if something's missing?
>
> I do this on another site, although not using javascript to submit:
>
> <form action="http://www.wlug.org.nz/gsdl/cgi-bin/library" method="GET"
> accept-charset="UTF-8">
> <div>
> <input type="text" value="" name="q" size="30" title="Search terms">
> <input type="hidden" name="c" value="wiki">
> <input type="hidden" name="a" value="q">
> <input type="submit" class="button" value="Fulltext Search">
> </div>
> </form>
>
>
> John
>