if we add javascript validation in form, do we need to validate again in php
Answers
Answer:
It is important to validate the form submitted by the user because it can have inappropriate values. So validation is must. The JavaScript provides you the facility the validate the form on the client side so processing will be fast than server-side validation.
Answer:
If its just for developement purpose , like a school project or free time project you can just use javascript for the validating the credentials entered directly from the client side and will be easy and quicker.
In case if you are working on something which is going to be used for production purpose, then security is of the most important thing you will have to look forward at. Most of the people can easily manipulate the Javascript validation. Just running a small script in the dev console tool can do a lot of things harmful and most of the people who are concenered about privacy and security turns off the javascript on their broswer, which may cause some problem while viewing your website and that's when you need to go for validating using php.
Hope this helps : )