用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2011|回复: 1
收起左侧

[HELP] 全选批量删除的问题

[复制链接]
发表于 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总是接受不到东西,请问是怎么回事
发表于 2013-10-10 13:33:51 | 显示全部楼层
你看看你的form标签对不对

本版积分规则