Accessibility
 
Home > Products > UltraDev > Support > Editing Database Records
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Editing Database Records
Sending the delete command to the server

The delete page uses a Submit button to send the delete command to the server. To add a Submit button to your page, you must create an HTML form. The form can consist only of the Submit button.

To add a Submit button to a delete page:

1 In Design view, place the insertion point where you want the Submit button to appear and choose Insert > Form.
An empty form is created on the page. 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.
2 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 Delete Record server behavior sets these attributes for you.
3 Add a Submit button to the form (Insert > Form Objects > Button).
4 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.
Here's the Property inspector of a button labeled Delete Record:
Next, you will add the Delete Record server behavior to update the database table after the user clicks the Submit button.

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