thanks, eve i have unique descriptions, the second option is better, cause i have less query to db and is faster to write it down too..
the code i put was
echo ('<td><select name="combo">');
$consulta = 'select codtipo, nombre from tipoproducto;';
$result = pg_query($consulta) or die('Consulta fallida: ' . pg_last_error());
echo "<option>Select Product...</option>";
while ($row=pg_fetch_array($result))
{ {
echo '<option value='.$row["codtipo"].'>'.$row["nombre"].'</option>';
}
echo ('</select></td></tr>');
So if in other page i have
$combo = $_POST["combo"];
i obtain the id 😃
thanks again