this seems simple and stupid, but i can't seem to figure out how to test if a file input form has been filled out (if a file has been selected)
i've tried all of these things and they ALWAYS return "No image"... even if i have in fact selected the file to upload:
if (empty($_POST[fileupload])) {
$display_block .= "no image";
}
else {
$display_block .= "there is an image, continue...";
}
if ($_POST[fileupload] == "") {
$display_block .= "no image";
}
else {
$display_block .= "there is an image, continue...";
}
if (!$_POST[fileupload]) {
$display_block .= "no image";
}
else {
$display_block .= "there is an image, continue...";
}
the file input form is named "fileupload"... anyone know how i can test for the input?