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

You must add an HTML form and an Update Record server behavior to your results page to make it a functional update page. The HTML form that you create will allow users to modify data.

To add an HTML form to an update page:

1 If it is not already open, open your results page.
2 Add an HTML form by placing the insertion point where you want the form to appear and choosing Insert > Form.
The page creates an empty form. You may have 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 have 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 Update Record server behavior sets these attributes for you.
4 Add a form object (Insert > Form Objects) for each column you want to update in the database table.
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.
Each form object should have a corresponding column in the recordset you defined earlier.
For more information on form objects, see "Creating Forms" in Using Dreamweaver.
5 Add a Submit button to the form (Insert > Form Objects > Button).
6 If you want, 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.
The next step is to display the record in the form by binding the form objects to database table columns.

To Table of Contents Back to Previous document Forward to next document