This is really confusing and there are lots of problems.
I have a page that uses some javascript and allows the user to browse and select multiple images from their computer through 1 single <input type=file> component.
This is not possible. <input type=file> (which MUST take place inside a form with special enctype by the way) gives you ONE file.
Well, since they can browse and select 6 images,
How? Are there 6 upload fields in your upload form?
if($userfile!=""){ $inf = GetImageSize ( $userfile );
How can you GetImageSize on a fileNAME? You can only GetImageSize on a FILE.
//Your code:
$userfile = @$_POST["up_img_1"]);
@ is used to suppress errors in your script. The extra ) is an error.
If all you want to pass is 6 fileNAMES, then use this:
$image_1 = $_POST['image_1'];
$image_2 = $_POST['image_2'];
$image_3 = $_POST['image_3'];
.
.
.
Here's a starter on getting 6 file uploads to your script. It just echos the filenames.
<form enctype="multipart/form-data" action="{$php_self}" method="post">
File 1:<input name="file1" type="file"><br>
File 2:<input name="file2" type="file"><br>
File 3:<input name="file3" type="file"><br>
File 4:<input name="file4" type="file"><br>
File 5:<input name="file5" type="file"><br>
File 6:<input name="file6" type="file"><br>
<input type="submit" value="Send File(s)">
</form>
and then to spit out the filenames:
for ($i=1;$i<=6;$i++) {
echo "File Uploaded: ".$_FILES['file'.$i]['name']."<br>\n";
}
Then you would use $_FILES['file'.$i]['tmp_name'] and stuff like that to handle the copying.