<input type="checkbox" name="onay" value="1" />
<? 
if(isset($_POST['onay'])) {
// VERİTABANINA YAZ..
} else {
// VERİTABANINA YAZMA
}
?>