Lesson 13. Validating Data
Many applications collect information from usersphone numbers, email addresses, and so onfor later use, or to send to a database where the data can be stored and retrieved as needed. However, if an application trusted users to enter properly formatted, error-free information, the application probably wouldn't function properlyor your database would quickly fill with useless data. The fact is, users often enter data incorrectly, which is why it's a good idea to validate data before it's used or processed. Validating data usually entails writing a script to check the way data was entered against a set of guidelines or rules. If data-entry errors are found, the user can be prompted to reenter the data; or in some cases, the script can make the needed adjustments without further input from the user.
Our fictional product contains a product registration form that allows us to collect data from the user, validate it, and display any errors found.

APPROXIMATE TIMEThis lesson takes approximately one and one half hours to complete.LESSON filesStarting File:Lesson13/Assets/validate1.flaCompleted Project:validate7.fla