How do I change the message to read “Are you sure you want to delete the member firstName, LastName”? So that an idiot would know who they are deleting?
In members.php you have a script as follows:
var agree=confirm(“Are you sure you wish to delete this member (This step cannot be undone)?”);
return true ;
return false ;
You can change the message in the first line.
I wouldn’t use a submit button here. These are normally used to submit a form. A normal button with an onclick handler would be a better option.
If you first provide a way to do it without any scripting being involved, you can then use scripting to override some of those techniques and enhance the experience for the user.
It also guarantees that your site continues to work no matter whether scripting is disabled or not.