scriptygoddess

15 May, 2003

ASP: What's coming from the form?

Posted by: Jennifer In: Script snippet

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

May 17th, 2003 at 4:29 pm

Avatar

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.

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements