Tested and workin -
<form enctype="multipart/form-data" action="" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
File 1: <input name="file1" type="file" /><br />
File 2: <input name="file2" type="file" /><br />
<input type="submit" value="Send File" />
</form>
<?php
if(!isset($_FILES))
{
echo("There are no files uploaded\n");
die();
}
foreach($_FILES as $key => $thisfile)
{
echo("For the form input name that is [" . $key);
echo("]<br />\n<br />\n");
echo("Remote file (name) is [" . $thisfile['name']);
echo("]<br />\n");
echo("Browsers suggested mime (type) is [" . $thisfile['type']);
echo("]<br />\n");
echo("Actual file (size) is [" . $thisfile['size']);
echo("]<br />\n");
echo("Server temporary name (tmp_name) is [" . $thisfile['tmp_name']);
echo("]<br />\n");
echo("Upload (error) is [" . $thisfile['error']);
echo("]<br />\n<br />\n<br />\n<br />\n");
}
?>
-----
Hello
Unfortunately, this still doesn't display anything, nor does the code
that James sent.
Thank you both for the time though :)
Could this be because of my php.ini settings?
This is what they look like. I've tried changing the upload_tmp_dir a
few times and that doesn't change anything...
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system
default if not specified).
upload_tmp_dir = C:\tmp
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
Is it anything on here that I should change?
By the way, my version of PHP isn't the newest (version 4.2.2 to be
exact), so I don't know if that is why this won't work, though I doubt
that's the case.
Thanks again for your time with the codes