formmethod 属性
formmethod 属性定义了表单提交的方式。
formmethod 属性覆盖了 元素的 method 属性。
注意: 该属性可以与 type="submit" 和 type="image" 配合使用。
实例
重新定义表单提交方式实例:
<formaction="demo-form.php"method="get"> First name: <inputtype="text"name="fname"><br> Last name: <inputtype="text"name="lname"><br> <inputtype="submit"value="提交"> <inputtype="submit"formmethod="post"formaction="demo-post.php" value="使用 POST 提交">form>