minusten — 2011-09-05T16:53:59-04:00 — #1
ive created a basic form that validates before posting to a db
Is there some simple code that can highlight/ mark
the incorect field on the html form?:)
guido2004 — 2011-09-06T01:45:04-04:00 — #2
Put the names of the fields with incorrect values in an array as you validate them. Then, in the part where you display the form, check for each field if it's name is in the array. If so, do whatever you want with it.