title: php multiple dropdown menu with same name can't get the value
body: <p>okay, im new in this site also new in php and can't get the logic on this,</p>
  
  <p>i have a product page that shows the name, quantity and an add to cart button in each row of product</p>
  
  <p>i made this just cutted of some code</p>
  
  <pre><code>    while($showProducts = mysql_fetch_array($products))
              {
              $currenQuantity = $showProducts['current_quantity'];
              $prodid = $showProducts['product_id'];
      echo"&lt;select name='quan'&gt;";
  
                  for ($x=0;$x&lt;=$currenQuantity;$x++)
              {
                  if($currenQuantity != 0)
                  {
                  echo "&lt;option value=$x&gt; $x &lt;/option&gt;";
                  }
              }
       echo"&lt;/select&gt;&lt;br/&gt;";
       }
  </code></pre>
  
  <p>now the problem is every time i tried to get the value by using $_POST['quan'] the value that i always get is the default value 1 even i select a different value of quantity of a certain product, and i'm blanked with ideas. </p>