HI
you can use multiple select box and put the option in to loop
as given below:
<select name="xyz">
<?php
$options= ("a","b","c","d") ;
for(i=0; i<sizeof(options);$i++)
{
if(inarray($options[$i], $database))
echo "<option value=".$options[$i]." selected>".$options[$i]."</option>";
else echo "<option value=".$options[$i]." >".$options[$i]."</option>";
}
?>
</select>
Please note that $database is an array which contains the set of values which are in database.