' form submit.co'发送电子邮件,但没有收到数据

发布于 2025-01-28 03:05:23 字数 1294 浏览 2 评论 0原文

我正在使用 https://formsubmit.co/ 以我的表单中的方式检索在我的投资组合网站上发送的电子邮件。一封电子邮件发送到我的帐户,但是表格中的任何信息都会显示在此电子邮件中。

我看了一些有关如何实现此功能的教程,而我的代码似乎相同。会感谢这里可能发生的事情的一些提示 我的代码:

<form action="https://formsubmit.co/[email protected]" method="POST">
          <ul>
          <li><input type ="Text" id="name" placeholder="Your Name"  required></li>
          <li><input type ="Text" id="subject" placeholder="Subject"  required></li>
          <li><input type ="Email" id ="email" placeholder="Your Email"  required></li>
          <li><input type ="Text" id ="phone" placeholder="Your Phone Number" required></li>
          <textarea id = "message " rows="10" autocomplete="off" placeholder="How can I help you?"></textarea><button id = "sumbitMessage">Send</button>
        </ul>
        </form>

遵循其他一些方法的教程,但到目前为止还没有任何工作可用,因此,如果您可以共享一些更好的资源,我也会很感激。

I am using https://formsubmit.co/ in my form, for retrieving emails sent on my portfolio website. An email gets sent to my account, however non of the information in the form appears in this email.

I've watched some tutorials of how to implement this and my code is seemingly identical. Would appreciate some tips on what may be going on here
my code:

<form action="https://formsubmit.co/[email protected]" method="POST">
          <ul>
          <li><input type ="Text" id="name" placeholder="Your Name"  required></li>
          <li><input type ="Text" id="subject" placeholder="Subject"  required></li>
          <li><input type ="Email" id ="email" placeholder="Your Email"  required></li>
          <li><input type ="Text" id ="phone" placeholder="Your Phone Number" required></li>
          <textarea id = "message " rows="10" autocomplete="off" placeholder="How can I help you?"></textarea><button id = "sumbitMessage">Send</button>
        </ul>
        </form>

Followed some other tutorials with different methods, but have not got anything to work so far, so alternatively if you could share some better resources I would appreciate that too.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

怪我太投入 2025-02-04 03:05:23

为了使您获取信息,每个输入必须具有“名称”属性。如下:

<form action="https://formsubmit.co/[email protected]" method="POST">
     <input type="text" name="name" required>
     <input type="email" name="email" required>
     <button type="submit">Send</button>
</form>

另外,将输入从无序列表中取出。

In order for you to get information each input must have a "name" attribute. Like below:

<form action="https://formsubmit.co/[email protected]" method="POST">
     <input type="text" name="name" required>
     <input type="email" name="email" required>
     <button type="submit">Send</button>
</form>

Also, take the inputs out of the unordered list.

本宫微胖 2025-02-04 03:05:23

尝试一下 - 我已经尝试了它,它可以工作:请参阅 jsfiddle

  <form action="https://formsubmit.co/[email protected]" method="POST">
              <ul> 
              <li> Your Name <input type ="Text" id="name" name="name"   required></li>
              <li>Subject <input type ="Text" id="subject" name="subject"   required></li>
              <li>Email <input type ="email" id ="email" name="email"    required></li>
              <li>Your Phone Number<input type ="Text" id ="phone" name="phone" required></li>How can I help you? <br>
              <textarea id = "message " rows="10" autocomplete="off" ></textarea>

            </ul>
    <button type="submit" id = "sumbitMessage">Send</button>

            </form>

Try this out - I've tried it and it works : See JSFiddle

  <form action="https://formsubmit.co/[email protected]" method="POST">
              <ul> 
              <li> Your Name <input type ="Text" id="name" name="name"   required></li>
              <li>Subject <input type ="Text" id="subject" name="subject"   required></li>
              <li>Email <input type ="email" id ="email" name="email"    required></li>
              <li>Your Phone Number<input type ="Text" id ="phone" name="phone" required></li>How can I help you? <br>
              <textarea id = "message " rows="10" autocomplete="off" ></textarea>

            </ul>
    <button type="submit" id = "sumbitMessage">Send</button>

            </form>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文