Site designed by Barry Wright
Mirror Ten Ltd
Count and Display Forms Fields in a Post/Get Form.
Loop through and count posted form requests.
Free Web Page Counter
Page Counters
Simple Text Counter
Simple Image Counter
Active Visitor Counter
Recordset Counters
Records in Recordset
Form Counters
Counting Through Forms
Free Web Counter
Web Hit Counter
 
 
How to Count and Display Forms Fields in a Post/Get Form
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)
%>

TradIndex
Share Dealing :)
Jacpotjoy