Dumping Form Information Onto a Web Page
By Amrit Hallan2005-06-01
Dumping Form Information Onto a Web Page
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:
|
|
|||||||||
You might also want to check these out:
|
Leave a Comment on "Dumping Form Information Onto a Web Page"
You must be logged in to post a comment.
Link to This Tutorial Page!

