Hi ppl... I got the followin code to generate a combo box... ++++++++++++++ function comb_alfabeto( $resultado, $nome, $letra) { global $error; =20 $quant =3D mysql_num_rows($resultado); If ($quant =3D=3D 0) { $error-> erro(); } Else { //----> > In=EDcio da combbox $cont=3D0; echo(' =20 <select name=3D"'.$nome.'" size=3D"1"'); echo("\n"); =20 while ($cont < $quant) { echo("\n"); echo(' <option value=3D"'.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 ??? thnx in advance... Regards Umer Talha (UT) 0345-3822586 ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ [Non-text portions of this message have been removed]