Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Multiple querystring entries - Brainfreeze

    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

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Code:
    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:

    Code:
    URL = "http://localhost/processor.asp?customer=" & cid & "&id=" & pin
    Which will result in http://localhost/processor.asp?customer=1231&id=15432
    Last edited by Daemonspyre; 08-23-2007 at 07:09 PM. Reason: Gave a little more data
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.

  • #3
    New Coder
    Join Date
    Aug 2007
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, perhaps i should wear my glasses more often! Many thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •