masterjiraya -3 Junior Poster

this is the code for selecting the file to be deleted by the user

<title>File Delete</title><form enctype="multipart/form-data" action="delete.php" method="POST">
 <input type="hidden" name="hidden1" value="file to be uploaded in AldrichSample folder" />
 Please choose a file: <input name="deleted" type="file" /><br />
 <input type="submit" value="DELETE" /><br />
 <input type="reset" value="cancel" /><br />
  </form>

this is the code for getting the file path

<?php
//$delete=$_POST['deleted'];
echo basename( $_FILES['deleted']['name']);
$dir = dirname(__FILE__.$_FILES['deleted']['name'])."\\".basename( $_FILES['deleted']['name']);
echo "<p>Full path to this dir: " . $dir . "</p>";
?>

the question is why i cant get the last subfolder? it only gets the subfolder of the host folder