I have a form to delete a record. One the form I am using a delete button and when the button is clicked the form is submitted.
<input type="submit" value="Delete" />
How can I implement a cancel and check in the action if it is the delete or the cancel that has been clicked?
You have to give the input a
name. For example:And then in your Action: