Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querystring not working 1

Status
Not open for further replies.

Telsa

Programmer
Jun 20, 2000
393
US
Okay gang... going nuts here...

I'm trying to make a page redirect and hold onto the form data. So in my redirect code I have this

response.redirect "pds_reviewexisting.asp?pdsid=" & pdsid

Then my output page has this

intPDSID = Request.Form("pdsid")

If isempty("intPDSID") Then
intPDSID = Request.Querystring("pdsid")
End if
response.write "PDSID = " & intPDSID 'This is my visual test to see if it is getting captured.

The data in the address field of the browser is correct but not getting captured in the querystring. I'm not sure what I need to do to make it work!

Anyone have any ideas??
Mary :)

Rule 1: Don't sweat the small stuff.
Rule 2: EVERYTHING is small stuff!! X-)
 


Telsa,


intPDSID = Request.Form("pdsid")
In ASP-speak, this is asking for the variable from
another page.


If isempty("intPDSID") Then
In VBscript, this is testing a string "intPDSID", not a
variable.

What you want is to remove the double quotes:
If isempty(intPDSID) Then


 
That was it exactly. This is what happens when I'm constantly interrupted at work, my brain takes a long leave of absence!!!

Thanks! Mary :)

Rule 1: Don't sweat the small stuff.
Rule 2: EVERYTHING is small stuff!! X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top