+ 2
Javascript validation or php validation?
better form validation using javascript or PHP?
2 Respostas
+ 2
As a safety reason you should use pHp validation , Some browser need to be script enabled ,in case it's not then jsp validation will not work
+ 2
For the basics JavaScript validation is okay, for example for checking whether a required field is properly filled, or whether a valid date or number was correctly supplied, basically just to verify the form data is at least worth sending & processing in server, rather than sending it to be checked by back-end code in raw (unverified) state, only to get in return an invalid input response from back-end : )
Hth, cmiiw