多POST提交
大师们帮看看这段哪错了if (!empty($_POST['num']) ||
!empty($_POST['title']) ||
!empty($_POST['price']) ||
!empty($_POST['years']) ||
!empty($_POST['season']) ||
!empty($_POST['groups'])
{
$w = array(
foreach($_POST as $k=>$v):
if(!empty($v)){
$k => $v;
}
endforeach;
)
}
就是通不过
找到方法了
$w = array();
if($_POST) {
$w = array_diff($_POST, array('', 0));
}
页:
[1]