How can i create an upload page for my visitors?

laupkram

New Member
Messages
32
Reaction score
0
Points
0
How can i create an upload page for my visitors? and able them to send it directly to my e-mail address
 

fahimtm

New Member
Messages
52
Reaction score
0
Points
0
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.
 

Thewinator

New Member
Messages
256
Reaction score
0
Points
0
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
 

rickle42

New Member
Messages
59
Reaction score
0
Points
0
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.
 
Top