Looping Through the Form Collection

Need to retrieve form field values without typing Request.Form=("field_name") numerous times? Loop through the Form Collection!

The Code:
<%
 For x = 1 to Request.Form.Count
     Response.Write Request.Form.Key(x) & " = "
     Response.Write Request.Form.Item(x) & "<br>"
 Next 
%>


asp request.form loop looping through form fields


Back To Top
© 1998 - 2017 psacake.com | My3C's

Version 7.2 | Advertise on this site