Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/260.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP联系方式赢得';不发送_Php_Email_Contact Form - Fatal编程技术网

PHP联系方式赢得';不发送

PHP联系方式赢得';不发送,php,email,contact-form,Php,Email,Contact Form,我无法使我的PHP联系人表单正常工作。我正在努力完成它在一页,将感谢任何帮助。我想用表格的形式保存它。我已经搜索过了,但是没有找到POST/if isset的正确格式。任何帮助都将不胜感激 PHP: 每行都不需要使用echo..你可以这样使用 echo "<table width=\"360\" cellpadding=\"2\" cellspacing=\"0\"> <tr> & so on...."; echo” &等等……”; 你也需要头球

我无法使我的PHP联系人表单正常工作。我正在努力完成它在一页,将感谢任何帮助。我想用表格的形式保存它。我已经搜索过了,但是没有找到POST/if isset的正确格式。任何帮助都将不胜感激

PHP:


每行都不需要使用echo..你可以这样使用

echo "<table width=\"360\" cellpadding=\"2\" cellspacing=\"0\">
      <tr> & so on....";
echo”
&等等……”;
你也需要头球

$to      = 'email@email.com';
$from= $email; 
$subject="Message sent using your contact form"; 
$msg = "blah blah";

$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
$headers .= "From: <".$from. ">" ;

mail($to, $subject, $msg, $headers);
$to='1!'email@email.com';
$from=$email;
$subject=“使用您的联系方式发送的邮件”;
$msg=“诸如此类”;
$headers=“MIME版本:1.0\r\n”;
$headers.=“内容类型:text/html;字符集=UTF-8\r\n”;
$headers.=“From:”;
邮件($to、$subject、$msg、$headers);
您没有
标签。
$to      = 'email@email.com';
$from= $email; 
$subject="Message sent using your contact form"; 
$msg = "blah blah";

$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
$headers .= "From: <".$from. ">" ;

mail($to, $subject, $msg, $headers);