p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_codeclinic thread: Re: Passing a query over to next page

Message #1 by "Frode StrÝmme" <fstroemm@o...> on Fri, 1 Jun 2001 03:37:44
just put  METHOD=3D"GET" in your FORM tag, and then get the values in 
the next
page with Request.QueryString("formsearch") etc

-----Original Message-----
From: Frode Str=F8mme [mailto:fstroemm@o...]
Sent: 01 June 2001 04:38
To: Code Clinic
Subject: [proasp_codeclinic] Re: Passing a query over to next page

I want to send the data I get from a form as a querystring.
Reason I do this is because I have problems getting strings for my sql
query when I do my paging database and use request.form, 
or just & string &

Can this be done directly in my form.asp file?

Or do I have to use a temp redirect file for this.

I'm currently using this as a temporary file now:


Dim tmpSearch, tmpChoice

tmpSearch =3D Request.Form("formsearch")
tmpValg =3D Request.Form("formchoice")

Response.Redirect "search.asp?searchID=3D" & tmpSearch & "&choiceID=3D" 


The above works, but I guess it can be done without the extra file 

- Frode.

Scottish Enterprise Network

  Return to Index