The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

javascript validataion question/problem

I am dynamically buiding an html form with php. I'm reading a db table field which has a set of codes delimited by a pipe. If the code is 1-2 characters long it's a group and it it's 3-4 characters long it's a deparment within a particular group. My form goes something like this:

Thanks, I was a bit unclear on that. I started out in the mid/late 70's, early 80's programming Fortran, then COBOL, then took a 17 yr sebatical from programming and computers. Well, sort of, I did get a MIS degree in there somewhere where I took a couple of Pascal courses. I really understood arrays and even did some project using 3 dimensions, but times, they are a changin'. Some of these new fangled concepts take a bit of explaining for me to get a handle on them...