An update page has three building blocks:
You can add the final two basic building blocks of an update page separately using the form tools and the Server Behaviors panel.
Before you can add the building blocks, your web application must be able to identify the record to update, and your update page must be able to retrieve it. See Searching for the record to update (PHP), Creating the links to open the update page (PHP), Creating a URL parameter for the links (PHP) and Retrieving the record to update (PHP).
Completing the update page consists of three tasks:
The page will become your update page.
An empty form is created on the page. You may have to enable Invisible Elements (View > Visual Aids > Invisible Elements) to see the forms boundaries, which are represented by thin red lines.
<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 dont 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.
The form objects are for data entry. Text fields are common for this purpose, but you can also use menus, checkboxes, and radio buttons.
Each form object should have a corresponding column in the recordset you defined earlier. The only exception is the unique key column, which should have no corresponding form object.
For more information, see Inserting HTML form objects.
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 more information, see Retrieving the record to update (PHP).
The Update Record dialog box appears.
For instructions, see Setting the Update Record dialog box options (PHP).
Dreamweaver adds a server behavior to the page that lets users update records in a database by clicking the Submit button on the form.
To edit the server behavior, open the Server Behaviors panel (Window > Server Behaviors) and double-click the Update Record behavior.