MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual page 562

Developing coldfusion mx applications
Table of Contents

Advertisement

<!--- define the action page in the form tag. The form variables will
pass to this page when the form is submitted --->
<form action="actionpage.cfm" method="post">
<!-- text box -->
<p>
First Name: <input type="Text" name="FirstName" size="20"
maxlength="35"><br>
Last Name: <input type="Text" name="LastName" size="20" maxlength="35"><br>
Salary: <input type="Text" name="Salary" size="10" maxlength="10">
</p>
<!-- list box -->
<p>
City
<select name="City">
<option value="Arlington">Arlington
<option value="Boston">Boston
<option value="Cambridge">Cambridge
<option value="Minneapolis">Minneapolis
<option value="Seattle">Seattle
</select>
</p>
<!-- radio buttons -->
<p>
Department:<br>
<input type="radio" name="Department" value="Training">Training<br>
<input type="radio" name="Department" value="Sales">Sales<br>
<input type="radio" name="Department"
value="Marketing">Marketing<br>
</p>
<!-- check box -->
<p>
Contractor? <input type="checkbox" name="Contractor"
value="Yes" checked>Yes
</p>
<!-- reset button -->
<input type="Reset" name="ResetForm" value="Clear Form">
<!-- submit button -->
<input type="Submit" name="SubmitForm" value="Submit">
</form>
</body>
</html>
Save the page as formpage.cfm within the myapps directory under your web root directory.
2
View the form in a browser.
3
The form appears in the browser.
Do not click the Submit button yet. Remember that you need an action page in order to
submit values; you create one later in this chapter in
562
Chapter 26: Retrieving and Formatting Data
"Creating action pages" on page
565.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents