Forum Moderators: open
for each variable_name
...
next
what's the syntax if I have several check boxes named the same thing in a form, and I need to process however many that my user checks off.
Thanks! I'm having a real brain cloud!
i = 0
For each Item In Request.Form
i = i + 1
'***DON'T DO THIS ***
Response.Write(Request.Form.Key(Item) & " " & Request.Form(Item) & "<br>")
'***DO THIS INSTEAD ***
Response.Write(Request.Form.Key(i) & " " & Request.Form(Request.Form.Key(i)) & "<br>")
Next
Or you'll get mismatched name/value pairs.