How can i create an upload page for my visitors? and able them to send it directly to my e-mail address
How can i create an upload page for my visitors? and able them to send it directly to my e-mail address
Erm...I got something..It's not exactly right but you uhave to change it abit..
<br />Upload an Profile Image:<br />
<form name="imageuploader" method="post" action="uploadpic.php" enctype="multipart/form-data">
<i>Path of Image:</i> <input type="file" name="imagefile">
<br>
<input type="submit" name="Submit" value="Upload Image">
</form>
<br />(Max 10000 file bytes , Must be file extention gif, jpg, jpeg, png, bmp....)<br />
(Images are resized to 150 x 150)<br />';
Not sure if thats right...but you will have to add the email bit...sorry..thats as much as I can do.
fahimtm it nice of you to show us an html form, but i think laupkram is more interested in the php part of that.
a lot can be done with the default form handlers, but the
input type="file" and http://php.net/move_uploaded_file
are probebly most important
Here is an AJAX file uploader:
http://www.hotscripts.com/Detailed/66212.html
And here an more advancer in PHP:
http://www.hotscripts.com/Detailed/62619.html
Last edited by galaxyAbstractor; 10-28-2007 at 01:41 PM.
Use something like the form mentioned above. Then in the PHP file just get the file with a var, and then use php mail() function to mail it to yourself.