源代码:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> </head> <body> <form action="demo-form.php" method="get"> First name: <input type="text" name="fname" /><br> Last name: <input type="text" name="lname" /><br> <button type="submit" >提交</button> <button type="submit" formmethod="post" formaction="demo-post.php">使用 POST 提交</button> </form> <p><strong>注意:</strong> Internet Explorer 9 及更早IE版本不支持 formmethod 属性。</p> </body> </html>
运行结果:
Fmpq工具