what I mean is there are several properties of a form field
when i loop through the "items", how am I supposed to know which of the
properties i am looping through
for instance, request.form has items, keys, allkeys, count.
why doesn't this pull in the keys, rather than the items.
For Each entryName In Request.Form
Response.Write("Name: " & entryName & "<br/>")
Response.Write("Value: " & Request.Form(entryName) & "<br/>")
Next
For Each...Next loop is designed for collections and arrays only. It
means you could loop through elements of a collection or array only.
You can't loop through Count property because it's not a collection.
You can loop through Request.Form, Request.Form.Keys or
Request.Form.AllKeys collections.
For Each entryName In Request.Form.Keys
Response.Write("Name: " & entryName & "<br/>")
Response.Write("Value: " & Request.Form(entryName) & "<br/>")
Next
or
Dim loop1 As Integer
Dim arr1() As String
arr1 = Request.Form.AllKeys
For loop1 = 0 To arr1.GetUpperBound(0)
Response.Write("Form: " & arr1(loop1) & "<br>")
Next loop1