jeffgreco13 @ Mon Apr 06, 2009 9:55 pm wrote:
For speed purposes you're better off validating your required fields using JS. Just to make sure your users enter information. Then usin PHP validate the content. Phone number length, email, etc. etc.
Validate all information server side. And if you wish to, check client side as well so the user knows right away if they enter something bad. The reason to check everything on the server side is that it can't be stopped, whereas doing it client side, you can shut javascript off, or send a fake http request, and you get bad data in your database.