I would like to ask some questions regarding server side and client side validation, I know that server side validation is a must and client side validation is optional so the user can have a better experience (no page load, quick response etc).
I’ve got a registration form and at the moment I’m only performing a server side validation.
So the form sends the request to a file called processor.php this file perform all the validation and returns the error if validation failed.
At the moment I’m usign sessions to store the error and redirect to the registration form so I can show the error message to the user.
Now the question is: if I also want to implement client side validation, fo example using the jquery validator plugin, has the client side validation priority over the server side validation? I suppose also it doesn’t make sense using ajax call in this case is it correct?
Many thanks for your help