I am trying to upload a doc file from a form and send it to email. I am using
$_FILES[\'file\'][\'tmp_name\'];
The problem is, it is retur
$_FILES["file"]["name"] - the name of the uploaded file
from http://www.w3schools.com/php/php_file_upload.asp