+ 1
Which is best for form validation?
1: JavaScript 2:PHP
2 Answers
+ 4
I think that it is better to validate in PHP on the SERVER SIDE and validate in JavaScript on the CLIENT SIDE.
JavaScript validation checks for errors before submission. Though PHP is more secure..
+ 2
Both.
Js for ux reason
Php for safety