Creating Content How To Create Forms
Creating Content How To Create Forms
The data gathered in forms is usually sent to a database on a server or through e-mail. To set up the form processing,
contact your site administrator. This guide helps you make the user interface of a form.
Setting up a form
You set up a form by inserting it and configuring options through the Properties panel.
To set up a form:
1. Open a page in Dreamweaver.
2. Place the insertion point on the page where you want to
insert a form or draw a new div for more precise
positioning of the form on your page.
Note: To draw a new div, click Draw AP Div in the
Layout category in the Insert panel, and then drag to draw
the div. Be sure to make the div large enough to contain
the entire form you plan to create.
To add a checkbox:
1. Click the Checkbox button in the Insert panel.
The Input Tag Accessibility Attributes dialog box opens
2. In the Input Tag Accessibility Attributes dialog box,
enter a unique name for the checkbox in the ID text box.
You may use any combination of letters, numbers, and an
underscore (_).
3. Enter a label for the checkbox in the Label text box. You
can leave the other properties in the dialog box at their
default values.
7. In the Height text box, enter the number of items the list
will display.
If this number is less than the total number of items in the
list, a scroll bar will be displayed.
8. If you want to allow visitors to select more than one item
in the list, select Allow Multiple for Selections.
9. Click the List Values button to add the list items.
Figure 16 List Values dialog box
The List Values dialog box opens (Figure 16).
10. With the insertion point in the Item Label text box, enter
the text you want to appear in the list.
11. In the Value text box, enter data you want sent to the
server when a visitor selects the item.
If you enter no value, then the form sends the label as the
value for that item.
12. Press Enter (Windows) or Return (Mac OS).
13. To add another item to the list, click the plus (+) button.
14. When you finish, click OK to close the List Values dialog
box.
3. Don’t enter a label for the button. Click OK to close the 6. Select the type of Action (usually this is
Input Tag Accessibility Attributes dialog box. Submit Form).
Note: A label would appear next to the button, rather
than on it, so you don’t want a label for a button form
element. The text on the button itself is set by the
button’s value attribute, which you will set in the next
step.
Figure 22 Example of text button
A text button appears in the document (Figure 22).
Note: In this example, a Submit button is placed below
an existing file field.
4. Click the button to select it.
5. In the Properties panel’s Value text box, enter the text
you want to appear on the button (Figure 23).
Note: It’s a good idea to set the value to whatever the
button does. “Submit” is a good choice, but you might
also consider brief phrases in the forms of commands (for
example, “Send Message” or “Update Profile” or
“Register”).