Validate On Server And Browser

For smooth and secure functioning of your website, it is necessary that it is valid on both the browser and server. This is an important tip to protect your website from hacking as the browser can catch simple failures like mandatory fields that are empty and when you enter text into a numbers only field. 

These can however be bypassed, and you should make sure you check for these validation and deeper validation server side. If you fail to do so, it could lead to malicious code or scripting code being inserted into the database or could cause undesirable results in your website.