I need to know what the user chose within <select>
.
In the code below I need to know the collection code chosen by the user, to show the items that have not yet been collected.
<p align="left">Nº da Coleta <br>
<?php
echo ("<select name=\"colCodigo\">");
$coletas = new Coletas();
$coletas = $coletas->distinct();
foreach ($coletas as $c)
{
$cod = $c["colCodigo"];
echo ("<option>$cod</option>");
}
echo ("</select>");
?>