Hi Mordecai and drawmack:
drawmack's code worked like a charm, thanks! However, I am still confused. When I read drawmack's code, I understand why it works, but I still don't really understand why mine does not!
When I write:
$filetype = $_FILES['grp_image_1']['type'];
if ($filetype == ("image/jpeg" || "image/jpg" || "image/pjpeg" || "image/gif" || "image/png"))
Aren't I saying:
The value of $filetype is the string (whatever the mime type is);
If the value of $filetype equals jpeg or jpg or .... ?
If that is so, the value of $filetype should only match one of my strings if it's mime type is "valid", right? So if $_FILES['grp_image_1']['type'] returns the string "text/plain", and that string becomes the value of $filetype, there would be no match....
Please enlighten me, oh Yogi of the Himalayas...(or Mordecai 🙂 )