handle info from select box
<p>i have the following code:</p>

<pre><code>&lt;form name="votos" method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;"&gt;
     &lt;?php $categorias=mysql_query("SELECT * FROM categoria") or die (mysql_error()); ?&gt;
     &lt;?php while($cat=mysql_fetch_array($categorias)){
     echo "&lt;h5&gt;".$cat[0]." - ".$cat[1]."&lt;/h5&gt;";
     $nomeados=mysql_query("SELECT * FROM nomeados WHERE cod_categoria='$cat[0]'") or die(mysql_error());
     ?&gt;
     &lt;div class="styled-select"&gt;
     &lt;select name="voto"&gt;
     &lt;option value=""&gt;&lt;/option&gt;
     &lt;?php
     while($nom=mysql_fetch_array($nomeados)){
        $nomes=mysql_fetch_array(mysql_query("SELECT nome FROM logins WHERE cod_login='$nom[0]'")) or die (mysql_error()); 
        ?&gt;

     &lt;option value="&lt;?php echo $nom[0]; ?&gt;"&gt;&lt;?php echo $nomes[0]; ?&gt;&lt;/option&gt;


     &lt;?php
     }
     ?&gt;&lt;/select&gt;&lt;/div&gt;
     &lt;?php }
     ?&gt;
     &lt;input type="submit" class="botao" value="" name="submit" /&gt;
     &lt;/form&gt;
</code></pre>

<p>the code shows all the categories with the nomenies in a select box.
the thing is that the select box goes to post with the same name. I don't know how to get the information from all of the select boxes. Maybe with a foreach?
Thank you for the help</p>
