Originally Posted by annaharris
I tried the code that Old Pedant has shared for multiple arrays, but unfortunately it didn't worked.
Thus proving, once again, that "Anna Harris" should keep "her" nose out of ASP coding since clearly "she" knows nothing whatsoever about it.
Here is a a complete working page:
Set data = Server.CreateObject("Scripting.Dictionary")
data.Add "fname", request.querystring("fname")
data.Add "sname", request.querystring("sname")
data.Add "email", request.querystring("email")
If data.Exists("fname") Then
Response.Write "First name is " & data("fname") & "<hr/>" & vbNewLine
For Each key In data.Keys
Response.Write "Key " & key & " has value " & data(key) & "<br/>" & vbNewLine
Save that code as some ASP page on your server. Let's say you save it as demo.asp
And then hit that same page from your browser, something like this:
And you will see this for the page output:
First name is zamboni
Key fname has value zamboni
Key sname has value wiggles
Key email has value firstname.lastname@example.org
Maybe "anna harris" (which is clearly an entirely FAKE NAME) should stick to PHP? Or underwater basketweaving?