In the past I have always validated the data once it was passed to the next part of the script. I have always thought this was inconveinent because you have to wait for a page load to fidn out you left a field blank or your email is incorrect etc.
What I am looking to do.. Is to make the form validate with javascript. But, not when the submit button is pushed.
Is it possible to validate the fields using the onBlur="" attribute? So when a user enters their username, it could check if it was blank and if its the right length etc.. then change like "* Required" to "Ok!" next to the fields as you go. Then it would just submit to the script that works with the data.
I have been trying to do this with no luck.. and i know its more javascript then php but any help would be awesome even some examples which i havent been able to find.
Thanks
Mike