...

View Full Version : Multiple querystring entries - Brainfreeze



csandbach
08-23-2007, 05:33 PM
Hi,

I have done this before, i just for the life of me cant remember how

I have this

cid=request.querystring("customer")
pin=request.querystring("id")



URL = "http://localhost/processor.asp?cid="&customer&"" < I need the & pin= to go here

so the requesting url would look like processor.asp?cid=1231&pin=15432

Daemonspyre
08-23-2007, 07:05 PM
URL = "http://localhost/processor.asp?cid=" & customer & "&pin=" & id

You were so close! You just added 1 too many double quotes on the end.

Just note that your code ( cid = request.querystring("customer") ) won't work, as your querystring is "cid", not "customer".

The URL above will give you:

cid = request.querystring("cid")
pin = request.querystring("pin")

If you want your code above, you need to change the variables in the URL:


URL = "http://localhost/processor.asp?customer=" & cid & "&id=" & pin

Which will result in http://localhost/processor.asp?customer=1231&id=15432

csandbach
08-23-2007, 08:15 PM
Thanks, perhaps i should wear my glasses more often! Many thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum