Upload photos using formmail

TOPIC CREATED: 2005-05-30

First Post marinajc
Registered: 2005-05-30 - Posts: 1

I have a form where I would like to have people be able to upload photos. The form part is ok, but I am told I have to alter the script to make it work. Anyone know how or what to do? I am using Jacks php formmail and I dont know anything about altering php codes.


4 Replies

Reply #1 webmaster
Registered: 2004-08-17 - Posts: 2793

Hi and welcome to DEVPPL.

I think you should look at some scripts. Here's some links to upload-scripts you can download and then change:


Reply #2 joshcxa
Registered: 2004-08-18 - Posts: 156

oh this could come in handy, thanks!

Reply #3 webmaster
Registered: 2004-08-17 - Posts: 2793

Here's a more simple one I use:

HTML:<form enctype="multipart/form-data" action="process.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="99999999999" style="font-weight: 700" />
<input name="userfile" type="file" />
<input type="submit" value="UPLOAD" style="font-weight: 700; text-decoration:underline" />


$uploadfile = $_FILES;
print "<pre>";
if (move_uploaded_file($_FILES, $uploadfile)) {
print "<center>Successfully uploaded.</center>";
} else {
print "File could not be uploaded. ";
print "</pre>";


Reply #4 Phate
Registered: 2004-11-20 - Posts: 826

webmaster - where does that post the files to? waht directory?