| The ASP Code |
|
The following ASP code will allow you to Count through the form field names and values. |
|
<%
strCount = 0
For Each name In Request.Form
formName = name
formValue = Request.Form(formName)
if formValue = "" then formValue = "Blank"
strContent = strContent&formName&":"&formValue&"<br>"
strCount = strCount + 1
Next
%> |
| The Form Results |
Place following code where you want your Form results to appear. |
|
<%
'Write the results of the form
Response.Write(strContent)
%> |
| The Number of Form Fields sent |
You can get to the Form Field Count by calling the following variable |
<%
'Write the results of the count
Response.Write(strCount)
%> |