代码之家  ›  专栏  ›  技术社区  ›  Ncs

使用Formspree提交表单时出错

  •  0
  • Ncs  · 技术社区  · 7 年前

    我用Formspree把表格里的信息发送到我的电子邮件里。一旦我点击提交按钮,我得到404资源找不到(进程.php)控制台出错,即使我的“action=”属性重定向到链接

    <form action="https://formspree.io/myemail@gmail.com" id="contact-form" class="form-horizontal" role="form" method="POST">
    
                  <input type="text" class="form-control" id="form-subject" name="form-subject" placeholder="Subiect" required>
    
                  <textarea class="form-control" rows="6" id="form-message" name="form-message" placeholder="message" required></textarea>
                      <div class="text-center">
                          <button type="submit" class="battn">Submit</button>
                      </div>
    </form>
    

    <meta name="Referrer" content="origin">
    
    2 回复  |  直到 7 年前
        1
  •  1
  •   Ncs    7 年前

        2
  •  0
  •   Kitanga Nday    6 年前

    this Formspree文章:

    • 你是 测试你的网站 计算机文件系统中的静态HTML文件 . 在这种情况下,它的URL将不会以http://or开头https://。 这行不通 http://localhost:8000 在浏览器上。如果您在Windows上,请尝试安装以下超级简单web服务器之一: Web server for Chrome , thttpd