<?
$zcusername=isset($_POST['zcusername'])?$_POST['zcusername']:'';
$zcpassword=isset($_POST['zcpassword'])?$_POST['zcpassword']:'';
$qrpassword=isset($_POST['qrpassword'])?$_POST['zcpassword']:'';
$def_zcusername='reg_zcusername';
$def_zcpassword='reg_zcpassword';
$def_qrpassword='reg_zcpassword';
if($zcusername !=$def_zcusername){
echo json_encode(array('result'=>'账号格式有误'));这一行报的错
die();
}
if($zcpassword !=$def_zcpassword){
echo json_encode(array('result'=>'密码格式有误'));和这一行
die();
}
if($qrpassword !=$def_zcpassword){
echo json_encode(array('result'=>'两次密码格式不同'))};还有这一行
die();
}
echo json_encode(array('result'=>'注册成功'))
?>
美橙达