For Attachment i am using the below mentioned code <input type="file" name="attachcopy" id="attachcopy" />
in my for to get input from the user. my problem is how to get the inputbox path. i need a file original path. i am using this code
if ($_FILES["file"]["error"] > 0)
{
echo "Error: " . $_FILES["file"]["error"] . "<br />";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
echo "Stored in: " . $_FILES["file"]["tmp_name"];
}
But this code returns temporary copy of the file stored on the server. How to get the exact address that is shown in the Input box. please guide me thanks in advance