Please wait while we load your page...


Latest Version [8.00202205221] Last Updated [May-22-2022]

Webmaster Tutorials

Definition [Secure Form Validation]

Protect Your Website Today

Secure Form Validation

Form validation should always be done both on the browser and server side. The browser (using client-side JavaScript) 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: for example, if JavaScript disabled in browser. You should make sure you revalidate and perform deeper validation via server-side validation (after form submitted). Failing to do so could lead to malicious code or scripting code being inserted into the database or website. Better to side with caution. Better to over-validate rather than under-validate, and server-side validation should always be employed: especially if the form sends emails, writes to files, or writes to a database.
Live Chat