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

validating ranks entered in form fields

Status
Not open for further replies.

j9

Programmer
Joined
Jun 6, 2001
Messages
90
Location
US
I have a page with about 30 text boxes that each collect a rank. The text boxes are named dynamically within a <CFOUTPUT QUERY...> loop. I want to validate that each rank is different (for example they are not allowed to enter a rank of '1' more than once). Does anyone know of a way to do this?
 
Server side you can loop through the form structure and add all values to a list. You can then check for duplicates.

Client side you can loop through the form array to get at the field values however you'll need a way of identifying duplicates not sure if there are any list functions in javascript.

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top