我在第1行和第6行收到错误,我将它们分开以便让您看到。
可以说出以下代码有什么问题吗?
/* Data Variables */
$name = $_POST['Name'];
$email= $_POST['Email'];
$comments = $_POST['Message'];
$phone = $_POST['Phone'];
$signup= $_POST['signup']
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
Comments: $comments <br>
Where did you find us : $where <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($to, $emailSubject, $body,
$headers);
答案 0 :(得分:2)
您在第6行缺少分号
$signup= $_POST['signup'];