//alert(result);
switch (result) {
case "-108":
AsyRequestend();
alert("不允许注册!");
break;
case "-100":
AsyRequestend();
alert("用户名已存在!");
break;
case "1":
// try {
// window.parent.UserLoginSuccussSet();
// }
// catch (e) {
// }
AsyRequestend();
alert("注册成功");
// location.href = "Index"
location.href = "/home";
break;
case "0":
AsyRequestend();
alert("注册失败");
break;
}
});
$username=$_GET[UserName];
$password=$_GET[UserPassword];
$qq=$_GET[UserQQ];
$email=$_GET[UserEmail];
$name=$_GET[NickName];
From: http://blog.csdn.net/loveifa/article/details/8530632