html文件
php文件
require_once("conn.php");
$pictype=$_post['pictype'];
if($pictype=="")
{echo "没有填写种类";}
else
{
echo "添加种类成功";
}
?>
总是显示没有填写种类请问我哪里出错了?谢谢
回复讨论(解决方案)
==是大小和数值都相等,你试试把if($pictype=="")改成if(!$pictype)看下
是 $_POST['pictype'] 不是 $_post['pictype'];
$_POST大写
==是大小和数值都相等,你试试把if($pictype=="")改成if(!$pictype)看下
还是不行
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn