$.ajax({
type: "POST",
url: "../users/registration",
data: 'username='+ username + '&password='+ password + '&email='+ email,
success : function(data) {
alert(data);}
});
在操作上它显示 //localhost/survey/users/ registration?username=dfdf&password=sdfdsfd&rpass=dfddd&email=dfdfdd&submitted=true
如何避免这种情况?
我的控制器功能
if (!empty($this->data))
{
$this->User->create();
if ($this->User->save($this->request->data)) {
$this->flash('Registration Successful','/users/register');
}
}