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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form element list 1

Status
Not open for further replies.

crusader

Programmer
Apr 26, 2001
24
GB
Hi,

In ASP is it possible to capture a list or an array of all of the posted form elements.
For example in Coldfusion you can simply do a loop over 'form.fieldnames' and this will give you all the used form element names and then you can manipulate to find their values.
 
the form collection can be iterated through as any array.
example:
Code:
For Each Item in Request.Form
  Response.Write Request.Form(Item) & "<br>"
Next

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think. faq333-3811
Join the Northern Illinois/Southern Wisconsin members in Forum1064
[/sub]
 
Thanks crusader! Glad it helped out

One other thing to note. Check these threads for sorting the collection as it was submitted on the form if that is a needed requirement
thread333-659147
thread333-386570

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think. faq333-3811
Join the Northern Illinois/Southern Wisconsin members in Forum1064
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top