SlayerACC
10-17-2009, 07:32 PM
Hello all,
could someone fill me in on getting a confirmation of deleting a record from mysql database.
basically.. are you sure you want to delete this record.? Yes/No.
Thanks, Slayer.
mlseim
10-17-2009, 10:41 PM
Do you currently have some sort of form that says, "delete this"?
Or do you have a link that says "delete this"?
We might have to see a lot of what you already have to come up with the solution.
There are a few ways it can be done. So show us some scripting and HTML forms?
SlayerACC
10-17-2009, 10:55 PM
I have a link that deletes the file.. and it deletes fine.. just looking on how you can add a confirmation of deleting the file.
Thanks,
barkermn01
10-17-2009, 11:06 PM
I have a link that deletes the file.. and it deletes fine.. just looking on how you can add a confirmation of deleting the file.
Thanks,
use Javascript
<script type="text/javascript">
function cofirm(){
var where_to= confirm("Do you really want to DELETE this item?");
if(where_to == true){
document.location = "your delete page(php output for the your current link href)";
}
}
</script>