title: creating Dynamic controls in html with different names
body: <p>I am creating radiobuttons in HTML .I am getting data from SQL Database.I am creating an attendence form in which there will be <strong><code>student name,Present Radio button ,Absent Radio button.</code></strong>
  I put the Present and Absent Radio button in a single Group,(so that only one could be clicked.The problem is that I can't create more than one radio group..My code is</p>
  
  <pre><code>&lt;html&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;?php echo $i;?&gt;&lt;/td&gt; // Serial Number
  &lt;td&gt; &lt;label&gt;&lt;?php echo $att['std_name'];?&gt;&lt;/label&gt;&lt;/td&gt; //student name
  &lt;td&gt;&lt;input type="radio" name="std_r[]" id="std_r[]"&gt;&lt;/td&gt; // for present
  &lt;td&gt;&lt;input type="radio" name="std_r[]" id="std_c[]"&gt;&lt;/td&gt; // for absent
  &lt;td&gt;&lt;input type="hidden" value="&lt;?php echo $att['rollnum'];?&gt;" &gt; &lt;/td&gt; //hidden field that will take roll number of student on next page
  
  &lt;/tr&gt;
  &lt;/html&gt;
  &lt;?php
  </code></pre>
  
  <p>I want that for each student there should be seperate group of radio buttons.thats why i want to create buttons with different name.
  Anyone who can help me with this
  Thanks</p>