Come posso oscurare il valore di un SELECT già inserito nel database in modo tale che non venga nuovamente selezionato?
Codice PHP:
<form name="modulo" method="post" >
<table width="103%" border="0" align="center">
<tr>
<td width="441">Targa: </td>
<td width="154"><select style="width:100%;" align="center" name="id_mezzo" id="id_mezzo">
<option selected="selected">---Inserisci Targa---</option>
<option>---------------------</option>
<?php
include_once("include/config.php");
$result = mysql_query(" SELECT id_mezzo,targa FROM `mezzo` ");
while($trg=mysql_fetch_array($result))
echo "<option name='id_mezzo' value=".$trg['id_mezzo']." id='id_mezzo'>".$trg['targa']."</option> ";
?>
</select></td>
<td><input type="button" value="inserisci" onClick="Modulo()" ></td>
<td>
</p>
</p></td>
</tr>
</table>
</form>