Is it better to validate your form via javascript or on the php server? I am doing it on the server now but am thinking about javascript. I am validating:
password1=password2
password, username, phone, email are not blank
and if possible:
is email is valid form?
is phone is format xxx-xxx-xxxx
Any suggestions in javascript how to do this? Any suggestions in php how to do the if possibles I listed?
Thanks