I'm using the following function to get a user to confirm deletion of a page:
Code: Select all
function confirmation() {
var answer = confirm("Are you sure you want to delete this page?")
if (answer){
alert("Page will be deleted permanently");
window.location = "<? echo $_SERVER['PHP_SELF']."?PHPSESSID=".session_id()."&ezine_id=".$_GET['ezine_id']."&action=delete"; ?>";
}
else{
alert("Action cancelled");
//window.location = "<? echo $_SERVER['PHP_SELF']."?PHPSESSID=".session_id()."&ezine_id=".$_GET['ezine_id']; ?>";
}
}Can anyone suggest how this may be possible?
Thanks in advance!