...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