Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Iterating through names on a form 1

Status
Not open for further replies.

scc

Programmer
Apr 30, 2001
218
US
Is is possible to iterate through the names (not the values) of the individual objects on the Form that passed info via the Request.Form object?

If so, how would I write this?

Sorry, but new at ASP...
 
try this:
Code:
<%
For Each item in Request.Form
  Response.Write item & vbcrlf
Next
%>
and to display values as well you could use:
Code:
<%
For Each item in Request.Form
  Response.Write item & &quot; : &quot; & Request.Form(item) & &quot;<BR>&quot; & vbcrlf
Next
%>
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Just what I needed!

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top