Accessibility
 
Home > Products > Dreamweaver > Support > Editing Database Records
Dreamweaver Icon Macromedia Dreamweaver Support Center - Editing Database Records
Deleting records without using a confirmation page

In some situations, you might want the web application to delete a record as soon as the user clicks a Delete link in a list of records. An intervening page does not appear asking the user to confirm the deletion.

This kind of functionality is usually handled by placing the record deletion logic on a page that's not displayed. The first page passes a record ID to the logic page, where the logic deletes the indicated record and immediately redirects the user to another page—typically the first page.

Building this kind of functionality in Dreamweaver MX involves the following steps:

1 Create a page listing the records. For instructions, see Creating a page listing the records.
2 Create Delete links. The links should point to a blank page containing the logic for deleting the identified record. For instructions, see Creating the delete links (no confirmation page).
3 Create URL parameters for the links. The links must pass the ID of the record the user wants to delete. The logic page will use this ID to find the requested record in the database and delete it. For instructions, see Creating a URL parameter (no confirmation page).
4 In the logic page, add the Delete Record server behavior to delete the indicated record. For more information, see Adding logic to delete the record (no confirmation page).
The following sections describe each step in detail.

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