Client Side Validation And Server Side Vaalidation
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).
Client side validation runs in the browser to check that
the form values are
of the correct type. JavaScript should always be used on the client side
since it is supported by both Netscape and IE. (VBScript is supported only
by IE).
of the correct type. JavaScript should always be used on the client side
since it is supported by both Netscape and IE. (VBScript is supported only
by IE).
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.
It is more secure because these checks cannot be easily bypassed.
Server side validation
checks the code that is submitted to make sure it
is correct. Good applications will use both server and client validation.
One reason for this is that it would be possible for someone else to write
a form that calls your .asp page - they might not use client side validation
and might throw in garbage data.
is correct. Good applications will use both server and client validation.
One reason for this is that it would be possible for someone else to write
a form that calls your .asp page - they might not use client side validation
and might throw in garbage data.