<select name="'.$nome.'" size="1"'); echo("\n");
while ($cont < $quant) { echo("\n"); if ($blah == $bleh) { echo(' <option value="'.mysql_result($resultado, $cont,$letra).'" selected>'.mysql_result($resultado, $cont,$letra).'</option>'); } else { echo(' <option value="'.mysql_result($resultado, $cont,$letra).'">'.mysql_result($resultado, $cont,$letra).'</option>'); } $cont++; } echo("\n </selected>"); } } +++++++++++++++++++ > But, how can i return the selected item value into a variable $var ??? That's normally how I do it... I'm not to sure on which values you need to do the comparison... It depends on what data you are returning from mysql I think.... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php