點(diǎn)擊確定怎么變成502 Bad Gateway
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標(biāo)簽</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
代碼沒錯只是你發(fā)送收不到返回數(shù)據(jù)而已,因?yàn)槟阒挥星芭_,沒有后臺。所以報502錯誤
2017-05-13
因?yàn)槟泓c(diǎn)擊確認(rèn)了,在這個練習(xí)代碼中的確認(rèn)提交按鈕是沒有實(shí)際進(jìn)行數(shù)據(jù)交互的,所以有badgate,刷新就好了