title: Getting post values of multiple lines in a form
body: <p>I have an HTML/PHP form that lists multiple inputs in which users can change values. I have a PHP <code>while</code> loop create the fields like so:</p>
  
  <pre><code>...
  $result = mysql_query($query);
  while (list($a,$b,$c) = mysql_fetch_row($result))
  {
    echo '&lt;tr&gt;';
    echo '&lt;td&gt;$a&lt;/td&gt;';
    echo '&lt;td&gt;&lt;input name="b" type="text" value="'.$b.'"&lt;/input&gt;&lt;/td&gt;';
    echo '&lt;td&gt;&lt;input name="c" type="text" value="'.$c.'"&lt;/input&gt;&lt;/td&gt;';
    echo '&lt;/tr&gt;';
  }
  ...
  </code></pre>
  
  <p>For this example I can have multiple lines of a,b,c and want to get all of the values when I submit the form via POST. Only <code>$b</code> and <code>$c</code> are input values that can be changed. Do I create variables <code>$a,$b,$c</code> as arrays, and if so, how do I set that up so that all of the values will be stored?</p>