Name
CFFORM — Enhanced in ColdFusion 5.0
Synopsis
<CFFORM> ... </CFFORM>
Creates a form capable of using controls including HTML input types such as input boxes, drop-down boxes, and radio buttons, as well as a number of specialized Java applets, such as tree, grid, and slider controls.
Attributes
-
NAME="name" A name for the form. You should specify a value for
NAMEif you plan to reference the form later in your application. Optional.-
ACTION="form_action" Where the form should be submitted upon completion. Required.
-
TARGET="window_name" The name of a frame or window where the target template specified in the
ACTIONattribute should be opened. Optional.-
ENCTYPE="MIME_type" The MIME type for data being submitted via the
POSTmethod. Optional. The default is “application/x-www-form-urlencoded”. If, however, you plan to allow file uploads via your form, you must specify “multipart/form-data”.-
ONSUBMIT="javascript_function" A JavaScript function that should be executed after validation occurs but before the form is submitted. Optional.
-
ENABLECAB="Yes|No" Whether or not Java controls associated with other
CFFORMelements should be made available to Microsoft Internet Explorer users as Microsoft cabinet files. Optional. This attribute is deprecated and no longer functional as of ColdFusion 5.0-
CODEBASE=”
URL" Specifies the URL to a downloadable JRE plugin for MS Internet Explorer. Optional. The default URL is /CFIDE/classes/cf-j2re-win.cab. New as of ColdFusion 5.0. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access