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

Looping through just the hidden elements

Status
Not open for further replies.

Mayoor

Programmer
Jan 16, 2004
198
GB
I have a form which submits a mixture of hidden and checkbox from elements.

Is there anyway of just looping through through the hidden elements on a form?
 
I recommend that you use some type of naming convention like all hidden field names start with an "x" so you could check for them like...

Code:
for each item in request.fields
  if left(item,1) = "x" then
    'handle hidden field here
  end if
next

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
zen.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top