Saturday, January 31, 2015

DIFFERENCE BETWEEN CLIENT & SERVER SIDE VALIDATION

Client Side Validation Vs Server Side Validation



Client Side Validation

When validation is done using a script (usually in the form of JavaScript) in the page that is posted to the end user’s browser to perform validations on the data entered in the form before the form is posted back to the originating server. Then , client-side validation has occurred.


Client-side validation is quick and responsive for the end user.


client-side validation is the more insecure form of validation. When a page is generated in
an end user’s browser, this end user can look at the code of the page quite easily (simply by right-clicking his mouse in the browser and selecting View Code).

Server Side Validation

When validation occurs on server, where application resides it is called server side validation.
The more secure form of validation is server-side validation.


It is more secure because these checks cannot be easily bypassed.


No comments:

Post a Comment