<CFFORM NAME="name" ACTION="form_action" ENABLECAB="Yes/No" ONSUBMIT="javascript" TARGET="window_name"> ENCTYPE="type" ... </CFFORM>
CFFORM allows you to build a form with CFML custom control tags that provide much greater functionality than standard HTML form input elements.
Optional. A name for the form you are creating.
Required. The name of the ColdFusion page that will be executed when the form is submitted for processing.
Optional. Yes or No. Allows users to download the Microsoft cabinet (*.cab) file(s) containing the Java classes used for Java applet-based CFFORM controls. If Yes, on opening the page, users are asked if they want to download the CAB file.
Optional. JavaScript function to execute after other input validation returns. Use this attribute to execute JavaScript for preprocessing data before the form is submitted. See Developing Web Applications with ColdFusion for information on using JavaScript for form validation.
Optional. The name of the window or window frame where the form output will be sent.
Optional. The MIME type used to encode data sent via the POST method. The default value is application/x-www-form-urlencoded. It is recommended that you accept the default value. This attribute is included for compatibility with the HTML FORM tag.
The following custom control tags are available:
The ENABLECAB attribute is supported only for MS Internet Explorer clients that have Authenticode 2.0 installed. Authenticode 2.0 can be downloaded from http://www.microsoft.com/ie/security/authent2.htm.
These CAB files are digitally signed using VeriSign digital IDs to ensure file security.
CFFORM allows you to incorporate standard HTML in two ways:
For example, you use a standard HTML INPUT tag to create a submit button in a CFFORM:
<CFFORM ... <INPUT TYPE="Submit" VALUE=" Update... "> ... </CFFORM>