[php]if (empty($_FILES[‘uploadedfile’][‘name’])) {
$ext = 0; }
else {[/php]
I’m trying to say that if the person did not upload a file, then I should set the variable $ext to zero. The else is just so that I can process the file if they did upload one.
Am I using the empty function wrong, or the $_FILES array wrong? For whatever reason, it seems to always set $ext=0, even if I DO upload a file.