【问题标题】:HTML email submit formHTML 电子邮件提交表单
【发布时间】:2012-01-18 08:56:49
【问题描述】:

电子邮件表单有问题。单击提交时无法识别页面。我错过了一些非常明显的东西吗?我已将“您的电子邮件地址”替换为 VALUE 中的有效电子邮件地址。

代码如下:

<form method="post" action="http://www.ftp://www.users.greenbee.net//cgi-bin/FormMail.pl" name="MyForm">

<input type="hidden" name="recipient" value="YOUR EMAIL ADDRESS" />
<input type="hidden" name="sort" value="order:FirstName,Surname,emailaddress,Comments" />

<center>

<table border="0" width="64%" bgcolor="#c0c0c0">
<tr>
  <td width="41%" align="center"><strong>First Name</strong></td>
  <td width="59%" align="center"><input type="text" name="FirstName" size="24" /></td>
</tr>
<tr>
  <td width="41%" align="center"><strong>Surname</strong></td>
  <td width="59%" align="center"><input type="text" name="Surname" size="24" /></td>
</tr>
<tr>
  <td width="41%" align="center"><strong>E-mail Address</strong></td>
  <td width="59%" align="center"><input type="text" name="emailaddress" size="24" /></td>
</tr>
<tr>
  <td width="41%" align="center"><strong>Comments on my webpage</strong></td>
  <td width="59%" align="center"><textarea rows="3" cols="24" name="Comments"></textarea></td>
</tr>
<tr>
  <td width="41%" align="center"><input type="submit" value="Send Form" name="SendForm" /></td>
  <td width="59%" align="center"><input type="reset" value="Clear Form" name="ClearForm" /></td>
</tr>
</table>

</center>

</form>

【问题讨论】:

    标签: html forms email


    【解决方案1】:

    action 的表格全乱了。

    它应该是http://ftp://,你不能同时使用两者。

    通过快速试验和错误,这个“工作”虽然需要身份验证:
    ftp://www.users.greenbee.net/cgi-bin/FormMail.pl

    【讨论】:

    • 没问题,很高兴我能帮上忙。
    【解决方案2】:

    您的操作页面无效 请参阅有两个协议

    Http 和 FTP..

    我认为这是错误的。

    【讨论】:

      【解决方案3】:

      检查您的操作路径。它必须是您的 FormMail.pl 的绝对位置。

      确保以 http:// 或 ftp:// 开头

      【讨论】:

        【解决方案4】:

        有一项名为Slapform 的相对较新的服务允许您通过电子邮件向自己发送表单提交。您所要做的就是将表单的method 设置为POST,并将表单的action 指向https://api.slapform.com/your@email.com。它非常简单易用:

        <form method="POST"
          action="https://api.slapform.com/your@email.com">
          <input type="email" name="email">
          <textarea type="text" name="message"></textarea>
          <button type="submit">Submit</button>
        </form>
        

        【讨论】:

          猜你喜欢
          • 2018-11-05
          • 2012-01-12
          • 2018-04-17
          • 1970-01-01
          • 2015-11-11
          • 1970-01-01
          • 2011-10-12
          • 2013-09-16
          • 1970-01-01
          相关资源
          最近更新 更多