Have you tried writing out the value of session("base") to the screen to
debug?
if Request.QueryString("base") <> "" then
session("base") = Request.QueryString("base")
strsql = "select * from " & session("base")
'DEBUG
Response.Write "session(base): " & session("base") & "<hr>"
Response.Write "strsql: " & strsql & "<hr>"
end if
-----Original Message-----
From: Mario Lopes [mailto:santoslopes@;netcabo.pt]
Sent: Monday, November 11, 2002 10:46 AM
To: ActiveServerPages
Subject: Please Querystring Problem
Hi
I have the following in a asp page <param name=URL4a
value="Tperguntasadd.asp?base=Spresent&tes='Simple Present'">
when i read this value i have
if session("base")="Spresent" then
strsql = "select * from spresent"
end if
if session("base")="Spast" then
strsql = "select * from spast"
end if
(where session("base")=request.querystring("base")
and it doesnt work. Why?
---
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]