ColdFusion 9.0 Resources |
Validating dataIt is often not sufficient that input data merely exists; it must also have the right format. For example, a date field must have data in a date format. A salary field must have data in a numeric or currency format. There are many ways to ensure the validity of data, including the following methods:
Note: Data validation using the cfparam,cfqueryparam,
and form tags is done by the server. Validation
using cfform tags and hidden fields is done using JavaScript
in the user’s browser, before any data is sent to the server.
For detailed information on validating data in forms and variables, see Validating Data For detailed information on validating query parameters, see Using cfqueryparam. |