Thanks for the tips, but nothing I've tried seems to work. This is a bit aggravating.
It seems that when I upload a .zip file, for some reason, the $POST and $FILES arrays are being blanked out or not set. The $_REQUEST array is now showing some wierd entries (see below).
If I upload an image, or text, or pdf, I can var_dump() all the arays all and they are filled as I would expect them to be, but a .zip is not.
I've done the following before any test on my submit button value:
<?php
var_dump($FILES);
var_dump($POST);
var_dump($_REQUEST);
test unziping a zip file.
if( $submit ){
print "<p>I see the file</p>";
}else{
print "<p>I see nothing</p>";
}
?>
Out put:
Files:
array(0) {
}
Post:
array(0) {
}
Request:
array(3) {
["shawtm"]=>
string(2) "11"
["utma"]=>
string(54) "23486248.1505127648.1193171054.1200412022.1202139289.3"
["utmz"]=>
string(96) "23486248.1202139289.3.3.utmccn=(referral)|utmcsr=launch.sha.cornell.edu|utmcct=/|utmcmd=referral"
}
I see nothing
Any thoughts? Back to Googling... 🙂
Thanks again. I appreciate the input.