I can't figure out what's wrong with this:
When the conditional should be false, it goes to true anyways.PHP Code:if ($userfile_type != "image/gif" || $usefile_type != "image/jpeg") {
echo "Invalid file type!";
} else {
echo "It's good!";
}
However, this will work:
PHP Code:if ($userfile_type != "image/gif") {
echo "Invalid file type!";
} else {
echo "It's good!";
}
![]()




Reply With Quote