點擊確定怎么變成502 Bad Gateway
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標簽</title>
</head>
<body>
<form method="post" action="save.php">
? ? ? <label for="username">用戶名:</label>
? ? ? <input type="text" ?name="username" id="username" value="" />
? ? ? <label for="pass">密碼:</label>
? ? ? <input type="password" ?name="pass" id="pass" value="" /> ? ?
? ? ? <input type="submit" value="確定" ?name="submit" />
? ? ? <input type="reset" value="重置" name="reset" />
</form> ?
</body>
</html>
2017-05-13
2017-05-13
代碼沒錯只是你發送收不到返回數據而已,因為你只有前臺,沒有后臺。所以報502錯誤
2017-05-13
因為你點擊確認了,在這個練習代碼中的確認提交按鈕是沒有實際進行數據交互的,所以有badgate,刷新就好了