I need to add a simple error message when deleting a user in a mysql database from a php form.
Logic would be when a user presses a delete button a message should popup "are you sure" with options "Yes" or "Cancel"
If "yes" delete user, if "Cancel" simply return back and don't delete. I'm using <input type="submit" name="Delete" onclick="alert('Are you sure')">
I'm missing the cancel code. everything else works. Please help.