> Hi.
>
[quoted text clipped - 27 lines]
>
> I thank you.
> > Hi.
>
[quoted text clipped - 38 lines]
> + "&"
> + "query=" + Request.QueryString["query"];
OK, thanks. I guess I am still a little confused.
Doesn't your response imply that the querystring is already well
formed?
I would need searchtype and query in he querystring to be able to call
Request.QueryString["searchtype"] or Request.QueryString["query"] .
If you mean to pull this information from the querystring prior to
submitting
the form, I still don't understand how the querystring gets formed. It
does,
however, make more sense to simply take local variables where
searchtype and query are stored and construct the querystring from
that - if that is OK.
I am assuming that the new_url string you have is what would be
created
when the form is submit? Would you mind showing me how, exactly, the
new string would get passed to the next page? Filling out the script
would be helpful to me. below is my form with my query input box:
<form id="searchWidget">
<span> </span>
<input class="query" size="40"
name="query" type="text">
<input class="submit" value="Search"
type="submit">
<a class="adv" href="/
index.master_search.aspx?a=a&x=1">Advanced Search</a>
<span> </span>
</form>
Thanks and apologies for my continued confusion here.
Alexey Smirnov - 31 Aug 2007 18:59 GMT
> > > Hi.
>
[quoted text clipped - 73 lines]
>
> - Show quoted text -
I thought you are talking about ASP.NET. The form you have here is not
a server form (runat="server") and you cannot use my example with
Request.QueryString. Either, you have to use a javascript to build url
and redirect to it, or you can use GET method for example
<form action="/index.master_search.aspx" method="GET">
<input class="query" size="40" name="query" type="text">
<input type="hidden" name="searchtype" value="2"
<input class="submit" value="Search" type="submit">
</form>
When you type "blabla" in the text field and submit the form you would
be redirected to
/index.master_search.aspx?query=blabla&searchtype=2