0
how to confirm delete in php without using js?
cinfirm delete
8 Answers
+ 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?