<html>
<head>
<title>HelloWorld</title>
<meta http
<link rel="stylesheet" type="text/css" href="
<script type="text/javascript" src="
<script type="text/javascript" src="
<script type="text/javascript">
Ext
var requestConfig = {
url:
params:{userName:
method : "post"
callback:function(options
var msg=["請求是否成功
"服務器返回值
Ext
}
}
Ext
});
</script>
</head>
<body>
</body>
</html> 復制代碼代碼如下:
<?php
$userName = $_POST["userName"];
$password = $_POST["password"];
$msg = "";
if($userName=="lowkey" && $password=="zq
$msg = "登陸成功";
} else {
$msg = "登陸失敗";
}
echo($msg);
?>
From:http://tw.wingwit.com/Article/program/PHP/201311/21296.html