我寫了一個php腳本,它會將我的html表單中輸入的信息發送到我的電子郵件。 使用000webhost.com測試腳本時,它說第8行有一個分析錯誤。 我試圖弄清楚,但我不能。 任何人都可以請幫我找到我寫的PHP腳本時所犯的錯誤?這個php腳本有什麼錯誤?
這是PHP腳本
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent=" Name: $name \n Email: $email \n Message: $message;
$recipient = "[email protected]";
$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>"
?>
任何幫助或建議將肯定讚賞。提前致謝!
This qu因爲它是一個「點 - 錯別字」的問題,所以它似乎是無關緊要的。 –
我不打算髮表答案,只是檢查所有結束分號,有些缺失。 –
@MattBall您先生,都是SPOT-ON ;-) –