Looping Through the Form Collection
- Home
- ASP
- 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