I am outputting to the screen rows of data followed by 2 buttons, edit and delete. When the edit button is clicked the user should be asked if they want to edit the existing record or if they want to add a new record. If they choose to edit the existing record, the page will be forwarded to a screen where the user can edit data, if they choose to add a new record, the page will be forwarded to a screen where the user can enter a new record. For the delete button, the user should be asked "Are you sure you want to delete this record?" If yes, record will be dumped into a deleted records table in the database. If no, keep focus on initial screen. Can anyone help me with this? I am desperate. Thanks in advance. My code is as follows:
OK then. Firstly, is it possible to make a part of the data a link? That way each record has a link that can be selected to act as the 'Edit' functionality. Then you no longer need the Edit button as such.