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 NAME if 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 ACTION attribute should be opened. Optional.

ENCTYPE=" MIME_type "

The MIME type for data being submitted via the POST method. 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 CFFORM elements 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. ...

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.