您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

如何在HTML中指定表单提交时要发送表单数据的位置?

2024/6/3 1:34:01发布27次查看
使用操作属性添加文件,点击提交按钮后您想要到达的位置。您还可以添加电子邮件以将数据发送到该电子邮件 id。
示例您可以尝试运行以下代码来设置当表单数据发送到何处时表单以 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中指定表单提交时要发送表单数据的位置?的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product