[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • Last Modified:

vbscript: het the key names for Request.QueryString collection items

FOR i=1 TO  Request.QueryString.Count
                  Response.Write( Request.QueryString(i))
NEXT

gives me the values,
how do i get the index names?

in otherwors from this:

http://www.mysite.com?p1=hello@p2=goodbye

I want to be able to find "p1" and "hello", and "p2" and "goodbye", so i can assign them to variables

thanks
0
majnun
Asked:
majnun
  • 2
1 Solution
 
joeposter649Commented:
For Each item In Request.QueryString
    Response.Write(item & " = " & Request.QueryString(item) & "<br>")
Next
0
 
joeposter649Commented:
Or
FOR i=1 TO  Request.QueryString.Count
     Response.Write( Request.QueryString(i) & ":" & Request.QueryString.key(i) & "<br>")
NEXT
0
 
majnunAuthor Commented:
Thank you!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now