I am trying to check to make sure a file has actually been submitted. All of my error checking works except the section to make sure the file to upload isn't empty.
It almost acts as if it skips my code:
if (!isset($HTTP_POST_FILES['userfile'])) {
header ("Location: index.php?error=1");
exit; }
Any ideas?
I am using PHP 4.4.2 on Linux