我编写了一个 php 脚本,它将在我的 html 表单中输入的信息发送到我的电子邮件。使用 000webhost.com 测试脚本时,它说第 8 行存在解析错误。我试图弄清楚,但我做不到。谁能帮我找出我在编写 php 脚本时犯的错误?
这是php脚本
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent=" Name: $name \n Email: $email \n Message: $message;
$recipient = "angrybullet2@gmail.com";
$subject = "New message";
$mailheader = "From: angrybullet2-contact-us \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "<div align=center><font face=calibri color=#009933<h3>Thank You! Your message is being proceeded.</h3></font><br><hr><a href=contact.htm>Go back to the contact us page</a>    OR    <a href=home.htm>Go to the home page</a></div>"
?>
任何帮助或建议都将不胜感激。提前致谢!