+ 2

Javascript validation or php validation?

better form validation using javascript or PHP?

13th Mar 2018, 6:20 AM
Irman Utamara
Irman Utamara - avatar
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
13th Mar 2018, 6:27 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 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
13th Mar 2018, 6:46 AM
Ipang