I put the code as follow but still didn't get any message. However, I no longer receive the email either. please help.
isset($_POST['submit']);
$active_keys = array();
foreach($_FILES[$photo]['name'] as $key => $filename)
{
if(!empty($filename))
{
$active_keys[] = $key;
} }
echo "<pre>Active Keys:".PHP_EOL.var_export($active_keys, true)."</pre>";
foreach($active_keys as $key){
switch(exif_imagetype($_FILES[$photo]['tmp_name'][$key])) {
case IMAGETYPE_JPEG:
case IMAGETYPE_PNG:
break;
default:
echo "{";
echo "$errors: 'This is no photo..'\n";
echo "}";
exit(0);
} }