Firebug 说请求以 200OK 发送到服务器,但 PHP 数组 $_POST 为空。
var pass_data = {
'email':$("#email").val(),
'verifyemail':$("#verifyemail").val(),
'password':$("#password").val(),
'confirm_password':$("#vPassword").val(),
}
$.ajax({
type: "POST",
url: 'localhost/pages/register',
dataType: 'json',
data: pass_data,
});
请求标头:
Accept application/json, text/javascript, */*; q=0.01
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Content-Length 86
Content-Type application/x-www-form-urlencoded; charset=UTF-8
Host localhost
Referer http://localhost/
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0
X-Requested-With XMLHttpRequest
有任何想法吗?