User Guide
70 Developing Web Applications with ColdFusion
<INPUT TYPE="reset"
NAME="ResetForm"
VALUE="Clear Form">
<INPUT TYPE="submit"
NAME="SubmitForm"
VALUE="Insert Data">
</FORM>
</HTML>
3. Save the file.
The VALUE attribute is optional. A default message displays if no value is supplied.
When the form is submitted, ColdFusion scans the form fields to find any validation
rules you specified. The rules are then used to analyze the user’s input. If any of the
input rules are violated, ColdFusion sends an error message to the user that explains
the problem. The user then must go back to the form, correct the problem and
resubmit the form. ColdFusion will not accept form submission until the entire form is
entered correctly.
Because numeric values often contain commas and dollar signs, these characters are
automatically stripped out of fields with
_integer, _float, or _range rules before they
are validated and saved to the database.
Note If you use CFINSERT or CFUPDATE and you specified columns in your
database that are numeric, date, or time, form fields that insert data into
these fields are automatically validated. You can use the hidden field
validation functions for these fields to display a custom error message.