Add logic to delete the record – Adobe Dreamweaver CC 2015 User Manual
Page 667
660
Building applications visually
Last updated 6/3/2015
In the following example, the record ID column, CODE, contains unique store codes.
5
Click OK and save the page.
Add logic to delete the record
After displaying the selected record on the delete page, you must add logic to the page that deletes the record from the
database when the user clicks the Confirm Deletion button. You can add this logic quickly and easily by using the Delete
Record server behavior.
To add a server behavior to delete the record (ColdFusion, PHP)
1
Make sure the ColdFusion or PHP delete page is open in Dreamweaver.
2
In the Server Behaviors panel (Window > Server Behaviors), click the Plus (+) button, and select Delete Record.
3
In the First Check If Variable Is Defined box, make sure Primary Key Value is selected.
You specify the primary key value later in the dialog box.