I need some help on how to have a user attach a file from their computer to a form. Hence I will recieve the file in my regular old email client with an attachment, a jpeg, from their computer. I want to be able to do this all from our website. I have already been successful in sending files from our server via email but I need to be able to read the file from there computer and then send it to me.
Any help would be great. ttopper@ydr.com or ICQ# 7362344
From the way I read this question, it is not really a php issue.
Try this: <form action="yourScript.php" method="post" enctype="multipart/form-data">
<input type="file" name="uploadedimage" size="35" accept="application/jpg">
</form>
/tmp/phpxfUjOD
That's what I get when I echo the "uploadedimage" variable. I changed the file type to "images/jpeg" as well. What I am supposed to do with this? Is it a filename or handle?
Here is an excellent article on how to implement a file upload.
To the page with exact answer: http://www.devshed.com/Server_Side/PHP/Stream1/page8.html
To beginning of article (what I'd recommend): http://www.devshed.com/Server_Side/PHP/Stream1/