is there a way that i could get both the entire path and filename of an input that has been passed on to a page by POST method.. here's a snippet..
<form method="post" action="upload_action.php">
<input name="index_file" type="file" id="index_file">
<input type="submit" name="Submit" value="Submit">
</form>
upon submitting.. php should pass two different values to two different variabale...
echo $file = $_POST['index_file'];
echo "<br>";
echo $path = dirname($file);
echo "<br>";
echo $filename = $_FILES['index_file']['name'];
but it only echoes the $file and $path ...
i know that the enctype for the form should be set to enctype="multipart/form-data" ...
but if i change the enctype... it echoes $filename only..
anyone.. help...