I can't figure out what's wrong with this:

PHP Code:
if ($userfile_type != "image/gif" || $usefile_type != "image/jpeg") {
        echo 
"Invalid file type!";
} else {
        echo 
"It's good!";

When the conditional should be false, it goes to true anyways.

However, this will work:

PHP Code:
if ($userfile_type != "image/gif") {
        echo 
"Invalid file type!";
} else {
        echo 
"It's good!";