PHP heredoc syntax error
<p>How come this code is giving me an error?</p>

<pre><code>   &lt;?php 
   $content = &lt;&lt;&lt;EOF
   $error
   &lt;form action="form2.php" method="post"&gt;

   &lt;label for="username"&gt;username:&lt;/label&gt;&lt;br /&gt;&lt;br /&gt;
   &lt;input type="text" name="username" class="text" /&gt;


   &lt;label for="password"&gt;Password&lt;/label&gt;&lt;br/&gt;&lt;br /&gt;
   &lt;input type="password" name="password" class="text" /&gt;


   &lt;input type="submit" value="login" /&gt;
   &lt;/p&gt;
   &lt;/form&gt;

   EOF;
   ?&gt;
</code></pre>

<p>The error is 'PHP heredoc syntax error'. </p>
