Skip to main content

Validation is used to check data to make sure it fits whatever required specifications are set for it.

Validation is the process of checking data to make sure they meet the specifications which have been set for them. Typically, validation is used in checking user-input data, and in verifying data before storage.

Examples of this include verifying that the characters in a phone number are numeric, and checking that a state abbreviation is exactly two letters.