title: Storing inputs from multiple SELECT tags into a PHP array
body: <p>I have an input field iterated 3 times and I would like to store the values entered in each of the fields in a PHP array. </p>
  
  <p>I called each OPTION <strong><code>item[]</code></strong> hoping that it would save each value in a same array. </p>
  
  <p>Would this work? If yes, how would I retrieve it on PHP?</p>
  
  <p>Here is my form:</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;Items&lt;/td&gt;
      &lt;td&gt;&lt;select&gt;&lt;?php
      $items = $con -&gt; prepare("SELECT * FROM item_descr");
      $items -&gt;execute();
      while($info = $items-&gt;fetch(PDO::FETCH_ASSOC)) {
      ?&gt;
      &lt;option name="item[]" value="&lt;?=$info['id_item']?&gt;"&gt;&lt;?=$info['name']?&gt;&lt;/option&gt;&lt;?php } ?&gt;
      &lt;/td&gt;
      &lt;td&gt;Quantity:&lt;/td&gt;
      &lt;td&gt;&lt;input name="quantity[]"&gt;&lt;/td&gt;
          &lt;td&gt;&lt;a href="" id="addItem"&gt;ADD&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr class="moreItems"&gt;
      &lt;td&gt;Items&lt;/td&gt;
      &lt;td&gt;&lt;select&gt;&lt;?php
      while($info = $items-&gt;fetch(PDO::FETCH_ASSOC)) {
      ?&gt;
      &lt;option name="item[]" value="&lt;?=$info['id_item']?&gt;"&gt;&lt;?=$info['name']?&gt;&lt;/option&gt;&lt;?php } ?&gt;
      &lt;/td&gt;
      &lt;td&gt;Quantity:&lt;/td&gt;
      &lt;td&gt;&lt;input name="quantity[]"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class="moreItems"&gt;
      &lt;td&gt;Items&lt;/td&gt;
      &lt;td&gt;&lt;select&gt;&lt;?php
      while($info = $items-&gt;fetch(PDO::FETCH_ASSOC)) {
      ?&gt;
      &lt;option name="item[]" value="&lt;?=$info['id_item']?&gt;"&gt;&lt;?=$info['name']?&gt;&lt;/option&gt;&lt;?php } ?&gt;
      &lt;/td&gt;
      &lt;td&gt;Quantity:&lt;/td&gt;
      &lt;td&gt;&lt;input name="quantity[]"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>