示例您可以尝试运行以下代码来设置当表单数据发送到何处时表单以 html 形式提交 -
<!doctype html><html> <body> <h2>student contact form</h2> <form action = "mailto:emailid@example.com" method = "post" enctype = "text/plain"> student name:<br><input type = "text" name = "sname"> <br> student subject:<br><input type = "text" name = "ssubject"><br> <input type = "submit" value = "send"> </form> </body></html>
以上就是如何在html中指定表单提交时要发送表单数据的位置?的详细内容。
