Re: [greenstone-users] Query string format

From John R. McPherson
DateFri, 27 May 2005 19:50:08 +1200
Subject Re: [greenstone-users] Query string format
In-Reply-To (Pine-LNX-4-44-0505271149560-7410-100000-fornax-it-iitb-ac-in)
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