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

[HELP] 跨站点提交的问题

[复制链接]
发表于 2011-6-16 19:29:28 | 显示全部楼层 |阅读模式
我用 ajax 提交一个数据到一个页面 我开启了  $config['csrf_protection'] = TRUE; 这个 请求的页面
                $this->form_validation->set_rules('user_name', '用户名', "trim|required|min_length[4]|max_length[20]");
                if ($this->form_validation->run() == FALSE) {
                     
                }        else{
                }
          如果这样写的话 js 要报内部错误
     要报错,有没有发点的解决方法啊?

本版积分规则