gpt4 book ai didi

javascript - HTML5 : Whenever I send a text area message to fill out the body of an email the name of the text area proceeds it. 如何修复此问题?

转载 作者:行者123 更新时间:2023-11-28 07:19:01 25 4
gpt4 key购买 nike

基本上,每当我发送文本区域消息来填写电子邮件正文时,该文本区域的名称总是会继续。因此,例如,如果我在文本区域中输入“Hello World”,然后按发送,我的电子邮件应用程序将打开,正文显示:“message=Hello World”。如何去掉“message=”部分?非常感谢,这是我当前的 HTML5 代码:

<section id="contact" class="four">
<div class="container">

<header>
<h2>Contact</h2>
</header>

<p>Send me a message: </p>

<form method="post" action="mailto:abc@abc.net" enctype="text/plain">
<div class="row">
<div class="12u$">
<textarea name="message" placeholder="Message"></textarea>
</div>
<div class="12u$">
<input type="submit" value="Send Message" />
</div>
</div>
</form>
</div>
</section>

最佳答案

这可能不完全是您想要的,但如果您将表单方法更改为 GET 并将 textarea 的名称更改为“body”,它将按您预期的方式工作,无需使用标签。使用 post 方法对数据进行编码,邮件客户端不知道如何在没有标签的情况下获得它。您可以在这里阅读更多相关信息:https://support.microsoft.com/en-us/kb/279460

<section id="contact" class="four">
<div class="container">

<header>
<h2>Contact</h2>
</header>

<p>Send me a message: </p>

<form method="GET" action="mailto:abc@abc.net" enctype="text/plain">
<div class="row">
<div class="12u$">
<textarea name="body" placeholder="Message"></textarea>
</div>
<div class="12u$">
<input type="submit" value="Send Message" />
</div>
</div>
</form>
</div>

关于javascript - HTML5 : Whenever I send a text area message to fill out the body of an email the name of the text area proceeds it. 如何修复此问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30519738/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com