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 - 2024 psacake.com
Version 7.21 | Advertise on this site