我想我有一個語法錯誤,但我不能發現它,任何想法?嵌入HTML在PHP錯誤
if($infozz['count'] <= $infozz['limit'])
{
mail($infozz['email'], "Your incident report copy!", $bodyz);
echo <<<EOT
<html>
<head>
<title> Summary Report </title>
<link rel="stylesheet" href="http://web.njit.edu/~swp5/assignment/style/style3.css">
</head>
<body>
<div class="header">
Summary Report
</div>
<div class="mess">
Type of incident: {$infoz['type']}<br><br>
Date upon entry: {$infoz['date']}<br><br>
Time upon entry: {$infoz['time']}<br><br>
Your account name: {$infoz['reporter']}<br><br>
Your incident ID number: {$infoz['ID']}<br><br>
Your description of the incident: {$infoz['desc']}<br><br>
An email has been sent to your account<br>
</div>
</body>
</html>
EOT;
}
什麼是語法錯誤消息? –
你會得到什麼樣的錯誤,讓你認爲這是這些行中的語法錯誤? –
這裏沒有什麼突出的東西,但要確保你沒有任何東西,包括EOT之前或之後的行中的空格; –