I am currently working on a phonebook system whereby people can add their own names to the database. So I also have an edit facility. Within my form however I have 3 checkboxes. What I need to know is say someone clears their checkbox, how do I get that to clear the table field?? At the moment, if they de-select the field then it adds it doesn't change the field. Also note, i created a separate column for each of the checkbox fields (they are called roles1, roles2, and roles3). I have included my code for how I can tell if the box should be checked or not. Thanks for your help.
// Check Box 1
echo "<input type='checkbox' name='roles1' value='EH&S Representative' ";
if (ereg("EH&S Representative", $myrow[roles1]))
# if database field value =yes then
printf (">EH&S Representative");