Hi
If you have a delete "link" then try this :
function confirmThis(url) {
if (confirm("Are you sure you want to delete ?")) {
window.location = url;
}
}
Then you can generate the delete link dynamically with PHP eg :
Delete!
This should pop up a OK/Cancel dialog bo
>When a user clicks upon a delete link that deletes a record from a
>database, I would like to be able to give them the option to OK or Cancel
>this action.
>
>I have tried coding the browsers built in confirm box (I can bring up
>this) but am unable to combine it with php or a combination of
2 matches
Mail list logo