编辑你的代码:
<!DOCTYPE html> <html> <body> <form action="/html5/tryit/demo_form" 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="/html5/tryit/demo_form" value="POST方式提交"> </form> <p><strong>注意:</strong> input标签的formmethod属性不支持IE9和更早的IE更早版本.</p> </body> </html>
查看结果:
phpxuexi.net
- 亲自试一试