By A Web Design
Data validation is the process which helps ensure that only clean, accurate and useful business data is stored within its business database.
When business data is captured via a form, business rules are applied to the data captured. If the business data captured passes these rules then it is stored in the database else it is rejected and an appropriate error message is displayed to the user explaining why it’s been rejected.
From a programmer’s perspective, data validation is understanding business rules and being able to apply them to business data captured in a form’s data entry field using an if condition. In this particular scenario the if condition will be written using a client side scripting language called JavaScript that is understood and executed by all modern day Browsers.
Generally there are four levels of data validation in any computer application
Where necessary, data entered in every field in a form can be validated at the field level itself.
Here data validation is done only after the user clearly indicates that all fields in a form have been filled in appropriately.
This validation happens when data is actually being saved in database
When developing Internet driven applications there are mainly two types of validation that can be done on user data, mostly based on the physical location of this data.
Data validation which is done using client side resources i.e. Browser based interpreters, client-side scripts.
Advantages:
Disadvantages:
Data validation done using Web server resources viz. interpreter\compiler used on the Web server.
Advantages: