如何在 HTML 中使用 formmethod 属性?
htmlweb developmentfront end technology更新于 2025/12/29 2:52:17
formmethod 属性用于定义发送表单信息的 HTTP 技术。此方法用于提交图片的输入类型。它会覆盖 HTML 表单的 method 属性。

示例
您可以尝试运行以下代码来学习如何在 HTML 中使用 formmethod 属性。
<!DOCTYPE html> <html> <head> <title>HTML formmethod attribute</title> </head> <body> <form action=”/new.php” method="get"> Student Name<br><input type="text" name="name"/><br> Student Subject<br><input type="text" name="subject"/><br> <input type="submit" value="Submit"> <input type="submit" formmethod=”post” formaction=”/new2.php” value="Submit"> </form> </body> </html>
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

