Home > Products > UltraDev > Support > Editing Database Records
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Editing Database Records
Adding the HTML form

The first step in building an insert record page is adding an HTML form. The HTML form lets users enter the data that will be added to the database table.

To add an HTML form to an insert page:

1 Create a new page (File > New) and lay out your page using the Dreamweaver design tools.
2 Add an HTML form by placing the insertion point where you want the form to appear and choosing Insert > Form.
An empty form is created on the page. You may need to turn on Invisible Elements (View > Visual Aids > Invisible Elements) to see the form's boundaries, which are represented by thin red lines.
3 Name the HTML form by clicking the <form> tag at the bottom of the Document window to select the form, opening the Property inspector (Window > Properties), and entering a name in the Form Name box.
You don't need to specify an action or method attribute for the form to tell it where and how to send the record data when the user clicks the Submit button. The Insert Record server behavior sets these attributes for you.
4 Add a form object (Insert > Form Objects) for each column in the database table that you want to insert records into. For example, if your database table contains columns for last names, first names, departments, and extensions, then add four corresponding form objects to the form.
The form objects are for data entry. Text fields are common for this purpose, but you can also use list/menus, checkboxes, and radio buttons.
For more information on form objects, see "Creating Forms," in Using Dreamweaver or in Dreamweaver Help (Help > Using Dreamweaver).
5 Add a Submit button to the form (Insert > Form Objects > Button).
6 You can change the label of the Submit button by selecting the button, opening the Property inspector (Window > Properties), and entering a new value in the Label box.
For example, the following image shows the Property inspector for a button labeled Insert Record:
To Table of Contents Back to Previous document Forward to next document