Html 网站联络表格问题

Html 网站联络表格问题,html,forms,Html,Forms,首先,我搜索了当前线程,并尝试了社区提供的99%的工作修复 我的问题是我没有收到通过 www.vapescotts.co.uk 这个联系表格放在底部,奇怪的是这个网站是一个工作网站的修改版本。所以我不明白为什么这个版本不起作用 <form name="htmlform" method="post" action="html_form_send.php"> <table width="100%"> </tr> <tr> <td valign="

首先,我搜索了当前线程,并尝试了社区提供的99%的工作修复

我的问题是我没有收到通过

www.vapescotts.co.uk

这个联系表格放在底部,奇怪的是这个网站是一个工作网站的修改版本。所以我不明白为什么这个版本不起作用

<form name="htmlform" method="post" action="html_form_send.php">
<table width="100%">
</tr>
<tr>
<td valign="top">
<label for="first_name"><p>First Name</p></label>
</td>
<td valign="top">
<input  type="text" name="first_name" maxlength="50" size="50">
</td>
</tr>

<tr>
<td valign="top"">
<label for="last_name"><p>Last Name</p></label>
</td>
<td valign="top">
<input  type="text" name="last_name" maxlength="50" size="50">
</td>
</tr>
<tr>
<td valign="top">
<label for="email"><p>Email Address</p></label>
</td>
<td valign="top">
<input  type="text" name="email" maxlength="80" size="50">
</td>

</tr>
<tr>
<td valign="top">
<label for="telephone"><p>Telephone Number</p></label>
</td>
<td valign="top">
<input  type="text" name="telephone" maxlength="30" size="50">
</td>
</tr>
<tr>
 <td valign="top">
  <label for="comments"><p>Your Comments</p></label>
</td>
<td valign="top">
<textarea  name="comments" maxlength="1000" cols="38" rows="12"></textarea>
</td>

</tr>
<tr>
<td colspan="2" style="text-align:left">
<input type="image" src="submit.png" input type="submit" value="Submit" height: "251px"; width: "293px"></i> 

</td> </td>
</tr></tr>
</table></table>
</form></form>
</div> </div>

名字


再次感谢StackOverflow社区

一些服务器阻止邮件功能最好尝试SMTP PHP邮件程序


现在我们开始

试试这段代码,可能会对您有所帮助。根据您的方便编辑此代码

$to = "webmaster@example.com";
$subj = "Contact Form Request";
$body = "There is a new contact form report, Kindly check it out.";
$body .= "<table border='1' cellpadding='5'>";
$body .= "<tr><td>Name:</td><td>".$name."</td></tr>";
$body .= "<tr><td>Email:</td><td>".$email."</td></tr>";
$body .= "<tr><td>Subject:</td><td>".$subject."</td></tr>";
$body .= "<tr><td>Message:</td><td>".$msg."</td></tr>";
$body .= "</table>";

$headers = "From: $email" . "\r\n";
$headers .= "Reply-To: " . strip_tags($email) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

$succ = mail( $to, $subj, $body, $headers );

if ( $succ || $succ != '' ) {
    echo "Mail Sent";
} else {
    echo "Failed";
}
$to=”webmaster@example.com";
$subc=“联系方式请求”;
$body=“有一份新的联系人表单报告,请查看。”;
$body.=”;
$body.=“名称:”.$Name.“;
$body.=“电子邮件:”.$Email.“;
$body.=“主题:”.$Subject.“;
$body.=“消息:”.$msg.“;
$body.=”;
$headers=“From:$email”。“\r\n”;
$headers.=“回复:”。剥去标签($email)。“\r\n”;
$headers.=“MIME版本:1.0\r\n”;
$headers.=“内容类型:text/html;字符集=ISO-8859-1\r\n”;
$succ=邮件($to、$subj、$body、$headers);
如果($suc | |$suc!=''){
回显“已发送邮件”;
}否则{
echo“失败”;
}

您是想在本地运行代码还是网页托管在web上?网页在web上,希望这有助于您获得特定错误或网页变为空白?顺便问一下,不要使用@mail,只使用mail()您有权访问php.ini吗?PHP是否配置为发送电子邮件?
$to = "webmaster@example.com";
$subj = "Contact Form Request";
$body = "There is a new contact form report, Kindly check it out.";
$body .= "<table border='1' cellpadding='5'>";
$body .= "<tr><td>Name:</td><td>".$name."</td></tr>";
$body .= "<tr><td>Email:</td><td>".$email."</td></tr>";
$body .= "<tr><td>Subject:</td><td>".$subject."</td></tr>";
$body .= "<tr><td>Message:</td><td>".$msg."</td></tr>";
$body .= "</table>";

$headers = "From: $email" . "\r\n";
$headers .= "Reply-To: " . strip_tags($email) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

$succ = mail( $to, $subj, $body, $headers );

if ( $succ || $succ != '' ) {
    echo "Mail Sent";
} else {
    echo "Failed";
}