OK I'm having an issue with this too - I have a mysql db and PHP pages. I'm submitting a form to the database and it already checks for empty strings and highlights fields if there are errors etc.
On one of the fields though (specifically the username) I need to check if it already exists in Col_1 of the DB and if TRUE then throw an error alert without submitting the form and if FALSE go through the form submission that is already validating.
So the real question I have... (maybe m3tsys too)... is really this:
Is there a way to onBlur/onChange/onSubmit (all of which can stop the form from submitting data to the DB) my form field to check if exists in db then throw alert?
or,
Is there another, perhaps easier way anyone can think of? I know I'm making this more complicated the more I keep thinking about it, sorry.