I'm trying to get an image upload script to upload more than one file at a time, here is the script in question..
<?php
if ($_REQUEST[completed] == 1) {
$newname = uniqid("whc").".jpg";
move_uploaded_file($_FILES['mailfile']...
"photos/$newname");
} ?>
<html>
<head><title> - </title></head>
<body><h1> - </h1>
<?php if ($_REQUEST[completed] != 1) { ?>
<b>Please upload an image</b><br>
<form enctype=multipart/form-data method=post>
<input type=hidden name=MAX_FILE_SIZE value=1500000>
<input type=hidden name=completed value=1>
<input type=file name=mailfile>
<br>
<input type=submit></form>
<?php } else { ?>
<b><a href=>Return</a></b>
<?php } ?>
Could anyone give me any tips? it would be greatly appreciated. Thanks