If statement 检查多个文本框是否为空,如果不是,则执行PHP
试试下面的If statement 检查多个文本框是否为空,如果不是,则执行PHP,if-statement,textbox,If Statement,Textbox,试试下面的PHPcode <? if ($_POST['username'] == NULL){ //if nothing is entered or only a zero is entered echo "Missing a field."; }else{ //rest of code } 这对我有用。如果为空,则重定向一个对话框窗体,否则执行作业,该作业就是要执行的insert语句 加入Missionsoft Programming Institute
PHP
code
<?
if ($_POST['username'] == NULL){ //if nothing is entered or only a zero is entered
echo "Missing a field.";
}else{
//rest of code
}
这对我有用。如果为空,则重定向一个对话框窗体,否则执行作业,该作业就是要执行的insert语句
加入Missionsoft Programming Institute(mtscertification.com)您能进一步解释您的问题吗?
<?
if ($_POST['username'] == NULL ||
$_POST['password'] == NULL ||
$_POST['email'] == NULL)
{ //if nothing is entered or only a zero is entered
echo "Missing a field.";
}else{
//rest of code
}
if(empty($_POST['memberfullname'])){
header("Location:srgbusinesspartnersmsg.php");
} else {
$insert= $con->command($ins);
header("Location:srgvalidatepartners.php");
}