thinkphp3.2 表单死活不传值,why?

浏览:987 发布日期:2015/10/24 分类:求助交流 关键字: post 传值 3.2
<form method="post" name="form1" action="/admin.php/Home/Warehouse/add_save">
                    <div class="form-group">
                        <label for="exampleInputname">仓库名称</label>
                        <input type="name" class="form-control" id="exampleInputname" placeholder="仓库名称">
                    </div>

                    <div class="form-group">
                        <label for="exampleInputaddress">仓库地址</label>
                        <input type="address" class="form-control" id="exampleInputaddress" placeholder="仓库地址">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputtelphone">仓库电话</label>
                        <input type="telphone" class="form-control" id="exampleInputtelphone" placeholder="仓库电话">
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-default">添加</button>
                        </div>
                    </div>

                </form>
public function add_save(){
    $Warehouse = M("Warehouse");
    $data = I('post.');

    dump(I('post.'));
    dump($_POST);
    dump($_REQUEST);
打印结果array(0) {
}
array(0) {
}
array(3) {
  ["PHPSESSID"] => string(26) "duqpchulqct7i64sut3ds6anp4"
  ["pgv_pvi"] => string(10) "9521294336"
  ["pgv_si"] => string(10) "s794953728"
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>