Are you looking for something like: <form action="" method="POST"> <table> <th><input name="file" type="text" /></th> <td><input name="submit" type="submit" /></td> </table> </form> <?php if($_POST) { $myFile = $_POST['file']; if(file_exists($_POST['file'])) { $handle = fopen($myFile, 'w') or die("Failed to open file."); unlink($myFile); fclose($handle); echo "File Deleted."; } else { die("That file does not exist."); } } ?> PHP: Or are you wanting a delete button next to the file name on the page that lists all of the files?
Thank you so much! This worked like a charm! Which kinda puzzles me because I also tried using $_post function, must have made an error :S Thank you again!