I'm unable to display a form dynamically
<p>When I try to use the <code>&lt;form&gt; &lt;/form&gt;</code> tag dynamically, it is not working.</p>

<p>Sample code:</p>

<pre><code>&lt;?php
   $i=1;
   while($i&lt;4)
   {
       &lt;form name="form'.$i.'" action="" method="post"&gt;
           &lt;input type="submit" name="a'.$i.'" /&gt;
       &lt;/form&gt;
       $i++;
   }
?&gt;
</code></pre>

<p>The code runs, but the form tag doesn't work for the first button. It works from the second button. But I need this for the first button also.</p>

<p>How can I resolve this?</p>
