用PHP判断接收来自表单的内容是否为空
我是这样写的
if($title == "" and $name=="" and $content==""){
$b = false;
}
if($b==true){
echo "asdasd";
}
但是每次刷新后还是会输出内容,谁能用PHP进行一下验证,
我是这样写的
if($title == "" and $name=="" and $content==""){
$b = false;
}
if($b==true){
echo "asdasd";
}
但是每次刷新后还是会输出内容,谁能用PHP进行一下验证,
和普通的input标签一样 你在判断 $title $name $content 的时候先判断有is_name 有没有值