Macromedia dreamweaver 8-using dreamweaver User Manual
Building ColdFusion MX 7 forms
829
Creating ColdFusion forms
You can use a number of Insert bar buttons, menu items, and Property inspectors to rapidly
create ColdFusion forms and set their properties in Dreamweaver.
create ColdFusion forms and set their properties in Dreamweaver.
These enhancements are only available if you have access to a computer running ColdFusion
MX 7 or later. For more information, see
MX 7 or later. For more information, see
To create a ColdFusion form:
1.
Open a ColdFusion page and place the insertion point where you want the ColdFusion
form to appear.
form to appear.
2.
Select Insert > ColdFusion Objects > CFForm > CFForm, or select the CFForm category
from the Insert bar and click the CF Form icon.
from the Insert bar and click the CF Form icon.
Dreamweaver inserts an empty ColdFusion form. In Design view, the form is indicated by
a dotted red outline. If you don’t see this outline, make sure that View > Visual Aids >
Invisible Elements is selected.
a dotted red outline. If you don’t see this outline, make sure that View > Visual Aids >
Invisible Elements is selected.
3.
Make sure the form is still selected and then use the Property inspector to specify the page
or script that will process the form data.
or script that will process the form data.
In the Property inspector, type the path of the page or script in the Action text box, or
click the folder icon beside the text box and navigate to the page or script.
click the folder icon beside the text box and navigate to the page or script.
If you don’t see the Action text box in the Property inspector, click the form outline in the
Document window to select the form.
Document window to select the form.
4.
In the Method pop-up menu, select the method you want to use to transmit the form data
to the server:
to the server:
Default
uses the browser’s default setting to send the form data to the server. Typically, the
default is the
get
method.
GET
appends the value to the URL requesting the page.
POST
embeds the form data in the HTTP request.
For more information, click the Help icon on the Property inspector.
5.
Insert ColdFusion form controls.
Place the insertion point where you want the ColdFusion form control to appear in the
ColdFusion form, and then select the control from the Insert menu (Insert > ColdFusion
Objects > CFForm), or from the CFForm category in the Insert bar.
ColdFusion form, and then select the control from the Insert menu (Insert > ColdFusion
Objects > CFForm), or from the CFForm category in the Insert bar.
For more information, see