title: Radio buttons in foreach loop
body: <p>i have a series of questions pulled from a database and need to loop radio buttons for each question. I need all of the answers returned to an array that looks something like this</p>
  
  <pre><code>$answer_grp1 = array("T", "T", "T");
  </code></pre>
  
  <p>My code looks like this. What is the correct (name=??) syntax to get an array into $_POST['answer_grp1']</p>
  
  <pre><code>&lt;?php foreach ($questions as $question):
              if ($question['q_type']==1): ?&gt;
                  &lt;tr&gt;
                      &lt;td style="width:5%;"&gt;&lt;?= $question['q_number'] ?&gt;&lt;/td&gt;
                      &lt;td style="width:15%;"&gt;
                          T&lt;input type="radio" name=answer_grp1[] value="T" /&gt;
                          F&lt;input type="radio" name=answer_grp1[] value="F" /&gt;
                      &lt;/td&gt;
                      &lt;td&gt;&lt;?= $question['q_text'] ?&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;?php endif;
              endforeach; ?&gt;
  </code></pre>