Vicky-yl 发表于 2013-8-15 20:43:19

全选批量删除的问题

视图中的相关代码:
<form action="<?=site_url('Admin/user_batchDEL')?>" method="post" id="form" name="form">
<td align="left"><input name="check[]" type="checkbox" value="<?=$row->id?>" class="noborder"/><?=$row->id?></td>
<input type="submit" value="批量删除" name="submit" class="bginput"/>
在控制器中:
function user_batchDEL(){
                if($this->input->post('submit')){
                        $posts=$this->input->post('check');
                        if($posts){
                        redirect('Admin/hello');
                        }
                }
        }
但是$posts总是接受不到东西,请问是怎么回事

qq907274532 发表于 2013-10-10 13:33:51

你看看你的form标签对不对
页: [1]
查看完整版本: 全选批量删除的问题