spacer
Web Development Tutorials ASP Tutorials
 Developer Newsletter

Tutorials
AJAX
ASP
CGI & Perl
CSS
Flash
HTML
Illustrator
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML
Miscellaneous


Scripts Directory
AJAX Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Web Hosting Directory
ASP.NET
Budget
Dedicated Servers
Ecommerce
Linux
Resellers
Shared
Small Business
Windows

Developer Manuals
Learn HTML
Learn PHP
Learn CSS
Learn AJAX
Learn JavaScript
Learn Pear
Free White Papers

Developer Resources
Developer Tools
Developer Content
Survey Software
Dedicated Servers




Dumping Form Information Onto a Web Page

By Amrit Hallan
2005-06-01


Dumping Form Information Onto a Web Page

There comes a time when you have to create very complex, very comprehensive online forms consisting of 30 to 40 fields. While debugging the form output, or while validating the individual form fields (for example, if all the fields have been filled), you need to dump all the form field with their names and with their respective values onto a web page so you can see exactly what is coming from where. This tutorial tells you how to do that.

Suppose we have the following form. To make the example shorter, I have not used many fields.

<form method=post action=showfields.asp>
<p>Name: <input type=text name="name" size=20><br>
Age: <input type=text name="age" size=20><br>
Location: <input type=text name="location" size=20><br>
Food: <input type=text name="food" size=20></p>
<input type=submit name="sub" value=Submit>
</form>

Now we write the code for the file showfields.asp

<%
For Each FieldVal in Request.Form()
Response.Write FieldVal & " -> " & Request.Form(FieldVal) &
"<br>"
Next
%>



Tutorial Pages:
» Dumping Form Information Onto a Web Page


 | Bookmark Print |   Write For Us
Related Tutorials:
» Decision Making and Looping
» Arrays in ASP
» Emailing Form Data with ASP
» Sending HTML Email with ASP
» Installing Personal Web Server
» Your First ASP Page



About the NetVisits, Inc Network | Write For Us | Advertise
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: