$.ajax({
type: "POST",
url: "../users/registration",
data: 'username='+ username + '&password='+ password + '&email='+ email,
success : function(data) {
alert(data);}
});
在它显示的动作上 //本地主机/调查/用户/的登记的用户名= dfdf&安培;密码= sdfdsfd&安培; rpass = dfddd&安培;电子邮件= dfdfdd&安培;提交=真
如何避免这种情况?
我的控制器功能
if (!empty($this->data))
{
$this->User->create();
if ($this->User->save($this->request->data)) {
$this->flash('Registration Successful','/users/register');
}
}
答案 0 :(得分:0)