我想我有一个语法错误,但我不能发现它,任何想法?嵌入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之前或之后的行中的空格; –