ASP: What’s coming from the form?

A simple little ASP snippet. If you want to see what’s coming over from your method=”POST” form - here’s a bit of code that will loop through everything, show you the variable name and it’s value:

for each x in request.form()
response.write(x & “: ” & request.form(x) & “<br>” )
next

if you’re using method=”GET” then it would be:

for each x in request.querystring()
response.write(x & “: ” & request.querystring(x) & “<br>” )
next

2 Responses to “ASP: What’s coming from the form?”

  1. Andy Says:

    you could also just put
    for each x in request()

    then it would work regardless of whether you are running a put or a get. I have something similar in my debug include page so that I can print out the values in a debug loop.

  2. annelieke Says:

    commentaar