i have a form that people can choose to attach a file to be emailed. the form contains a button:
<input name="upload" type="file" size="30" class="text">
i don't want to upload the file the file to the server, i just want to access the name of the file they have selected and the actual file itself.
does $_FILES['upload']['name'] return the name of the file even if it's not being uploaded?
and how do i actually assign a variable to the actual file itself? $file = $_POST['upload'] doesn't seem to be working
(i need to access the actual file so i can retrieve it's binary data to include in the email)
thanks!