Form validation problem...

Giganews Newsgroups
Subject: Form validation problem...
Posted by:  Eddie (edd…
Date: Fri, 5 Sep 2003

I have a form that's used to sort a series of items.  The form has a number
of text fields.  Each text field should contain a number.  When the form is
submitted I would like to do two things:

1. Verify that only numbers are entered in each text field.
2. Verify that there are no duplicate entries in any text field.

So each field should be a unique number.  Another thing complicating this is
that I do not know how many fields I will have on any given form.  I am
building this form dynamically from a database call.  So the function would
need to parse through the form and check each field, without specifying the
name of the field...

I realize this may be simple for most of you (I'm hoping...), but I'm WAY
rusty on my Javascript, having spent the past few years doing mostly
server-side coding...

THANKS for your help!!!