From there, you can compare user input in different fields or against values that might be held in other repositories, such as a database.
You can check for many types of information, as you learn in the rest of this article.
In addition to native Cold Fusion input validation using the VALIDATE attribute of the CFINPUT and CFTEXTINPUT tags, the following tags support the ONVALIDATE attribute , which allows you to specify a Java Script function to handle your CFFORM input validation: The ONERROR attribute allows you to specify a Java Script function you want to execute in the event of a failed validation.
For example, if you specify a Java Script function to handle input validation in the ONVALIDATE attribute you can also specify a Java Script function in the ONERROR attribute to handle a failed validation, which returns a false value.
Validating, in this case, does not mean that if John Doe types his name into the form field of a text box as Fred Doe the computer sends an alert to inform you that the data is untruthful.