当我上传 jpg 文件时,我的代码正在回显 else 语句。我错过了什么我哪里出错了吗?
顺便说一句,它在代码的第 39 行
if(($type=="image/jpeg") || ($type=="image/JPG") || ($type=="image/bmp") || ($type=="image/png"))
{
move_uploaded_file($temp, "images/$mypic");
echo "What a pretty face! <img border='1' width='50' height='50' src='images/$mypic'><p>";
mysqli_query($link,$query);
echo ("user registered successfully!<a href='home.php'>Login now!</a>");
}
else
{
echo ($type);
echo "Please load a valid jpeg, jpg or bmp! And size must be less than 10k!"; }
}