title: store values in array to POST with selected checkboxes
body: <pre><code>while($row = mysql_fetch_array($result)){
    echo '&lt;tr&gt;';
    echo '  &lt;td&gt;&lt;input name="types[]" type="checkbox" value="' . $row['type'] . '" /&gt;&lt;/td&gt;';
    echo '  &lt;td&gt;' . $row['type'] . '&lt;/td&gt;';
    echo '  &lt;td&gt;&lt;input size="3" type="text" name="quantities[]" id="TBox-' . $TBCounter . '" /&gt;&lt;/td&gt;';
    echo '&lt;/tr&gt;';
  }
  </code></pre>
  
  <p>it's hard to find on the internet for this solution. 
  how do i store selected checkboxes value into types[] and quantities[]?</p>
  
  <p>i would like to do a POST in php</p>