如何编码联系我们表单的提交按钮 [英] How to code contact us form's submit button

查看:85
本文介绍了如何编码联系我们表单的提交按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个联系我们表格,但每当我点击提交按钮时,它就会把我带到我的电子邮箱,并问我从哪个电子邮件地址提交此表格,我不希望这种情况发生。任何人都可以帮我吗?



我尝试过:



i已经通过互联网搜索了我的问题,但找不到任何东西:(

I have coded a contact us form but whenever i click on submit button it take me to the my email and ask me from which email address i wanna submit this form, i don't want that to happen. Can anyone help me with it?

What I have tried:

i have searched about my problem over internet, but couldn't find anything :(

推荐答案

听起来你的问题是表格行动 ,你可能有这样的东西
It sounds like your issue is the Form Action, you probably have something like this
<form action="mailto:someone@example.com" method="post" enctype="text/plain">

并且诚实地说可能只是工作它的目的是什么。



自从90年代HTML出现以来,这种方法一直存在,当时每个人都有一个电子邮件客户端作为基于Web的邮件在这是婴儿时期。

也就是说,这就是 Action 的工作方式 - 提交按钮用创建新电子邮件模式的电子邮件打开你的电子邮件客户端。它可能会填写主题,可能还有一个正文。



我猜你想要的是将这个表单转换为电子邮件并自动发送。这将需要某种类型的形式处理器来读取表单上的所有项目,然后自动发送出去。

这可以通过安装在服务器或第三方处理器。这两种语言都比较容易找到。

and in all honesty is probably working just the way it was intended to.

This method has been around since the advent of HTML back in the 90s, when everyone had an email client as web based mail was in it's infancy.
That said, this it the way that that Action works- the submit button opens up your email client with an email in the "create new email" mode. It may have the subject filled out and possibly a body.

I am guessing that what you want is to have this form converted to an email and automatically sent. This would require some type of form processor to read all of the items on the form and then send it out automatically.
This could be achieved either by a script installed on the server or a third party processor. Both of these are relatively easy to find in a variety of languages.


这篇关于如何编码联系我们表单的提交按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆