<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>W3Cschool(w3cschool.cn)</title>
</head>
<body>
<form action="/statics/demosource/demo-form.php" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="提交">
<input type="submit" formmethod="post" formaction="/statics/demosource/demo-post.php" value="使用 POST 提交">
</form>
<p><strong>注意:</strong> Internet Explorer 9及更早IE版本不支持 input 标签的 formmethod 属性。</p>
</body>
</html>