Form Controls - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

Form controls

Within the form, you describe the form controls needed to gather and submit user input. There
are a variety of form controls types available. You select form control input types based on the
type input you want to user to provide.
The following figure shows an example form containing different form controls:
The following table shows the format of form control tags:
Control
Text control
Radio buttons
List box
Check box
Reset button
Submit button
Use the following procedure to create the form in the previous figure.
To create a form:
Create a ColdFusion page with the following content:
1
<html>
<head>
<title>Input form</title>
</head>
<body>
Code
<input type="Text" name="ControlName" size="Value" maxlength="Value">
<input type="Radio" name="ControlName" value="Value1">DisplayName1
<input type="Radio" name="ControlName" value="Value2">DisplayName2
<input type="Radio" name="ControlName" value="Value3">DisplayName3
<select name="ControlName">
<option value="Value1">DisplayName1
<option value="Value2">DisplayName2
<option value="Value3">DisplayName3
</select>
<input type="Checkbox" name="ControlName" value="Yes|No">Yes
<input type="Reset" name="ControlName" value="DisplayName">
<input type="Submit" name="ControlName" value="DisplayName">
Using forms to specify the data to retrieve
561

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents