PDA

View Full Version : Passing More than One Variable


kgjeremytw
03-13-2003, 02:53 PM
I'm creating a delete page. After A record is deleted, I would like to redirect the user to the updated page to show that the record has been deleted.

THe page to select the record to be deleted has a redirect URL with this syntax:

delete_record_page.asp?level2variable=123,level1variable=5

My issues is that that the level2variable is being seen as "123,level1variable=5"

I'm not sure what the syntax is to pass the two veriables, I've tried "&" and "+" and they don't seem to work. I need to pass the level1variable so I can return the user to the original starting point. Any assistance or examples would be greatly appreciated. Thanks

Spudhead
03-13-2003, 03:00 PM
if your redirect looks like:

response.redirect("delete_record_page.asp?level2variable=123&level1variable=5")

then delete_record_page.asp will be able to access the variables via:

myVar1=request.querystring("level1variable")
myVar2=request.querystring("level2variable")

david7777
03-14-2003, 07:17 AM
Just use "&" instead of ",".

like Spudhead said:


delete_record_page.asp?level2variable=123&level1variable=5