deleting a file with a confirmation pop up
Posted: Mon Sep 08, 2003 10:55 pm
ok so I know how to delete a file from a dir.
...but what if I make a mistake and delete the wrong file?
Is there way to have a pop up ie. javaScript or something like that, that says are you sure you want to delete this file.
The delete script I am using is:
and the link to that is:
How can I add that confirmation pop up?
Any help would be apreciated.
TIA,
Wes
...but what if I make a mistake and delete the wrong file?
Is there way to have a pop up ie. javaScript or something like that, that says are you sure you want to delete this file.
The delete script I am using is:
Code: Select all
<?php
if(isset($del)){
unlink("$del");
}
?>Code: Select all
<a href="index.php?del=files/$file" target="_self">DELETE</a>How can I add that confirmation pop up?
Any help would be apreciated.
TIA,
Wes