<!DOCTYPE?html>
<html>
<head>
????<meta?charset="UTF-8">
????<title>form?for?POST?&?GET</title>
????<meta?http-equiv="keyword"?content="http://www.diffen.com/difference/GET_(HTTP)_vs_POST_(HTTP)">
</head>
<body>
????<h2>POST?</h2>
????<!--?<form?action="form1.php"?method="POST"?target="_blank"?>?-->
????<form?action="form.php"?method="post"?target="_blank"?>
????????<label?for="">username</label>
????????<input?type="text"?name="username"?placeholder="username"?/><br/>
????????<label?for="">password</label>
????????<input?type="password"?name="password"?placeholder="password"?/><br/>
????????<label?for=""> </label>
????????<input?type="reset"?value="reset">
????????<span> </span>
????????<input?type="submit"?value="submit">
????</form>
????<hr/>
????<h2>GET?</h2>
????<form?action="form.php"?method="GET"?target="_blank">
????<!--?<form?action="xx.xxx"?method="get"?target="_blank">?-->
????????<label?for="">username</label>
????????<input?type="text"?name="username"?placeholder="username"?/><br/>
????????<label?for="">password</label>
????????<input?type="password"?name="password"?placeholder="password"?/><br/>
????????<label?for=""> </label>
????????<input?type="reset"?value="reset">
????????<span> </span>
????????<input?type="submit"?value="submit">
????</form>
????<hr/>
????<!--?error?:?input?without?name?屬性-->
<!--?????<h2>POST?</h2>
????<form?action="form.php"?method="post"?target="_blank"?>
????????<label?for="">username</label>
????????<input?type="text"?placeholder="username"?/><br/>
????????<label?for="">password</label>
????????<input?type="password"?placeholder="password"?/><br/>
????????<label?for=""> </label>
????????<input?type="reset"?value="reset">
????????<span> </span>
????????<input?type="submit"?value="submit">
????</form>
????<hr/>
????<h2>GET?</h2>
????<form?action="form.php"?method="GET"?target="_blank">
????????<label?for="">username</label>
????????<input?type="text"?placeholder="username"?/><br/>
????????<label?for="">password</label>
????????<input?type="password"?placeholder="password"?/><br/>
????????<label?for=""> </label>
????????<input?type="reset"?value="reset">
????????<span> </span>
????????<input?type="submit"?value="submit">
????</form>?-->
</body>
</html>
<!--?
?method?不區(qū)分大小寫!
?method="get"??method="post"?正確!
?method="POST"?method="GET"??正確!
?-->
<!--?
post?get?error!
input?name?屬性?不可以少!
?-->
2016-04-16