0
how to confirm delete in php without using js?
cinfirm delete
8 odpowiedzi
+ 4
You could use links
<?php if(!isset($_GET[”confirm”])) { ?>
<a href=”?confirm”>Delete</a>
<?php } else { ?>
<a href=”delete.php”>Cannot be undone</a>
<?php } ?>
+ 2
//Delete things from databases or
+ 2
//Still no clue what and where you want to delete
+ 2
Use a form instead.
You can cancel its submission by returning the results from confirm() function.
<form onsubmit=”return submit()”>
function submit() {
return confirm(”This can’t be undone”);
}
0
when click user on delete link in the the browser
0
i have link that delete picture from database and sometime ftom folder using mysql query and php unlink function i want say to user if you delete this can not be undone
sorry about my english is not good
0
you mean confirm function of js?
0
what if javascript disabled in client side?