If your page and querystring parameters are

atest1.asp?Var1=abc&Var2=xyz

in your asp page write

dim strVar1, strVar2

strVar1 = Request.QueryString("Var1")
strVar2 = Request.QueryString("Var2")

response.write(" Var1 = " & strVar1 & "<br/>")
response.write(" Var2 = " & strVar2 & "<br/>")

-------------------

Alternatively since Request.Querystring is a collection of
querystring parameters you can also write

dim qryStrParam
for each qryStrParam in Request.QueryString
  response.write(qryStrParam & " = " & Request.QueryString(qryStrParam) &
"<br/>")
next

http://localhost/qparams.asp?Var1=abc&Var2=xyz

will display

Var1 = abc
Var2 = xyz

Check out
http://www.w3schools.com/asp/coll_querystring.asp

hope that gets you moving...

----- Original Message -----
From: "Tsiris Alexandros" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 11:58 PM
Subject: querystrings


: I know the following question is very simple.
:
: But I come from a background in Linux and PHP, so forgive me for its
: simplicity.
:
: I have a page and I am trying to pass 2 variables to another page.
:
: so I use the following code:
:
: str = "?" & selected & InputVal
: window.open "atest1.asp" & str
:
: I see on top that the values of the strings are being passed (should I put
: "?" &mystring=" & selected ...etc..)?
:
: on the other side, I use:
:
: myselected = Request.QueryString("selected")
:
: Response.Write " it is " & myselected
:
:
: all I get is 'it is'
:
: Could someone point me in the right direction?
:
: Thank you,
:
: Alexander
:
:
: ---
: You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
: To unsubscribe send a blank email to
%%email.unsub%%
:



---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to