嗨,大家好,我的if语句不起作用。我想基本上什么都不做,数组是空的,或者如果它有值,就做些什么。所有这一切发生的是“没有选择的额外”即使我选择演员php空数组if语句
if (empty($extras)) {
$message .="<br /> No extras selected <br />";
} else {
foreach($_POST['extras'] as $extra)
{
$message .="<br />Extras: ".$extra."<br />";
}
}
是的,它是复选框的数组 – Simon 2011-04-28 12:51:23