![MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual Download Page 150](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-developing-web/coldfusion-4-5-developing-web_develop-manual_3286369150.webp)
124
Developing Web Applications with ColdFusion
Creating Forms with the CFFORM Tag
You’ve already learned how to use HTML forms to gather user input. (See
“Using
Forms to Specify the Data to Retrieve” on page 30
.) This chapter shows you how to use
the CFFORM tag to create dynamic forms in CFML. In addition to HTML control types,
you can use CFFORM to create forms that contain controls such as:
•
Text boxes in which you can specify the appearance such as fonts and colors
•
Java applet based controls, inclusing trees, sliders, and grids
•
Other Java applets that act as form elements
With CFFORM, you gain the advantage of access to these Java applet-based controls
without having to know the Java language, and, you don't have to juggle CFOUTPUT
tags and HTML FORM tags to reference ColdFusion variables in your forms.
In addition, most CFFORM controls offer input validation attributes you can use to
validate a user's entry, selection, or interaction. This means you don't have to write
separate CFML code specifically for input validation as you do in HTML forms.
Using HTML in a CFFORM
You can use the HTML FORM tag in combination with the CFFORM tag. ColdFusion
generates HTML forms dynamically from CFFORM tags and passes through to the
browser any HTML code it finds in the form. You can use the PASSTHROUGH attribute
of the CFFORM, CFINPUT, and CFSELECT tags to enter any HTML attributes that are
not explicitly allowed in these tags. The attribute values will be passed through to the
HTML generated by these form tags. You can also replace your existing HTML FORM
tags with CFFORM and your forms will work fine.
CFFORM controls
Forms created using CFFORM use one or more of the following controls:
CFFORM Controls
Control
Description
CFGRID
A Java applet-based control used to create a data grid you can
populate from a query or by defining the contents of individual
cells. Grids can also be used to insert, update, and delete records
from a data source.
CFSLIDER
A Java applet-based control used to define a slider.
CFINPUT
Used to place radio buttons, check boxes, text input boxes, and
password entry boxes.
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...