Amaç ben db güncelleme nerede tıklandığında ise, posta yoluyla olacağı, bir onay kutusunu sahip olmaktır. Kullanıcı geri kontrol edebilir ve ileri aktif durumunu ayarlamak veya unset.
Bu mükemmel çalışıyor:
<form name='form".$value['id']."' action='./filter_edit.php' method='post'><input type='checkbox' name='checkbox[".$value['id']."]' value='".$newActive."' onclick='document.form".$value['id'].".submit();' /></form>
Ancak, yukarıda kodu kullanarak, kutusu işaretli görünüyor hiç.
Alan kutusunun kontrol edilecektir nerede aktif ayarlanır sonra aşağıda kod ile, kutunun işaretini kaldırın tıklayarak gönderebilirsiniz, ancak herhangi bir post değişkenleri gönderir gelmez.
<form name='form".$value['id']."' action='./filter_edit.php' method='post'><input type='checkbox' name='checkbox[".$value['id']."]' value='".$newActive."'";
if($value['active'] == 1)
echo " checked='checked'";
echo" onclick='document.form".$value['id'].".submit();' /></form>