title: how to loop one radio button with different id
body: <p>I'm trying to create a radio button in a loop, but I want to assign a unique id so it becomes a group where only one radio can be selected. Is this possible? My loop duplicates the same radio and I can select every button. I only want to select one.</p>
  
  <pre><code>&lt;?php
  
  $i = 0;
  $i = $i++;
  while($i&gt;=0)
  {
  echo "&lt;input type='radio' name='test[$i++]' value='test[$i++]'&gt;test[$i++] ";
  echo "&lt;BR&gt;";
  $i++;
  
  }
  ?&gt;
  </code></pre>
  
  <p>UPDATE <strong><em>THIS WORKS!!!</em></strong></p>
  
  <pre><code>&lt;?php
  
  $i = 0;
  while($i++ &lt; 5) 
  {
      echo "&lt;input type='radio' name='test' value='test[$i]'&gt;test[$i] ";
  }
  ?&gt;
  </code></pre>