Hi,
I use this code to let the user select one or more options in the select listbox.
My problem is, i don't only need to know which one are selected (those are put in the array), but also which ones have not been selected or in fact deselected:
Code select box:
<select name="abonneer_op[]" multiple size="6">
<option value="table1">emailgroup 1
<option value="table2">emailgroup 2
<option value="table3">emailgroup 3
</select>
Code to add emailID to selected email group:
$teller=count($abonneer_op);
for ($i=0; $i<$teller; $i++){
$check = mysql_query("INSERT INTO $abonneer_op[$i] SET emailID='$ID'");
}
But i also have to delete the emailID form all emailgroups that have been deselected!
Someone any idea how i can do this??
Thanks,
Max.