I use this javascript code:
function confirmAction(question, uri) {
if(confirm(question)){
document.location=uri + '&confirm=1';
}
return false;
}
create link like this:
delete
If user has javascript enabled, on delete.php you will get
$_GET['confirm']=1, and you know the action
Hi Wilmar,
> And when the user hits the Delete link a pop up dialog box (javascript
> style) asks for confirmation.
Not a big deal. Your PHP script has to generate Links like:
delete
where xy is the id of your record. The link will be followed after a
positive conformation, "myscript.php" can
2 matches
Mail list logo