O'Reilly logo

Programming ColdFusion MX, 2nd Edition by Rob Brooks-Bilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

cfform

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.

New in ColdFusion MX, the preservedata attribute now works with radio button and checkbox types provided the value of the control matches the value of the posted data.

Attributes

action=" form_action "

Location (page) where the form should be submitted upon completion. Optional.

archive=" URL "

Specifies the URL to a downloadable Java archive file containing Java-based cfform controls. Optional. The default URL is /CFIDE/classes/cfapplets.jar.

class=" style_name "

Name of a CSS (Cascading Style Sheet) style to apply to the HTML form tag generated by cfform. Optional.

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.

enablecab="Yes|No"

No longer supported in ColdFusion MX or ColdFusion 5. Whether or not Java controls associated with other cfform elements should be made available to Microsoft Internet Explorer users as Microsoft cabinet files. Optional.

enablejar="Yes|No"

Not currently supported (in the initial MX release). 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required