Mam formularz w którym są 4pola typu checbox. Po otwarciu strony pola są zaznaczane lub nie zgodnie z bazą danych. Wygląda to tak
echo' <fieldset class="fdset"> <legend>Powiadomienia</legend> <form action="users_settings.php" method="post"> <table class="uss" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="usslabel" ><input type="checkbox" name="message[]" '.(($row["u_new_message"]==1)?'checked="checked"':'').' /> Powiadom mnie o nowej wiadomości</td> <td class="usslabel" ><input type="checkbox" name="message[]" '.(($row["u_new_message_gift"]==1)?'checked="checked"':'').' /> Powiadom mnie o nowym prezęcie</td> </tr> <tr> <td class="usslabel" ><input type="checkbox" name="message[]" '.(($row["u_new_message_my_account"]==1)?'checked="checked"':'').' /> Powiadom mnie o logowaniu na konto</td> <td class="usslabel" ><input type="checkbox" name="message[]" '.(($row["u_message_gift_book"]==1)?'checked="checked"':'').' /> Powiadom mnie o rezerwacji mojego prezentu</td> </tr> <tr> <td class="usslabel" ><input type="checkbox" name="message[]" '.(($row["u_new_message_releasing_gift"]==1)?'checked="checked"':'').' /> Powiadom mnie o powiadom mnie o zwolnieniu prezentu</td> <td class="usslabel" ><input type="checkbox" name="message[]" '.(($row["u_new_message_"]==1)?'checked="checked"':'').' /> Powiadom mnie o </td> </tr> <tr> <!--<td class="usslabel" ><input type="checkbox" name="nazwa" value="wartość" /> Powiadom mnie o </td>--> </tr> <tr> <td class="buttons" colspan="2" ><center><br /><button class="positive" type="submit" /><img src="image/save_form.png" alt=""/> Zapisz</button></td></tr> <tr><td class="pbuttons" colspan="2"><input type="hidden" name="pre" value="upd_us_mail" /></td></tr> </table> <br /> </form> </fieldset>';
Problem mam w tym, że jak przechwycić że użytkownik zmienił zdanie i odzanczył pole(lub zaznaczył) i zmienić wartości w bazie danych z 1 na 0(lub z 0 na 1). Jakaś chwilowa zaćma i nie wiem jak to zrobić

Będę bardzo zobowiązany za pomoc.