I have database like this:
column cek for define checkbox with code like this:
<input type="checkbox" value="" name="ada[]" @if($d->cek) checked @endif>
When its checked it will gave value '1', and when its unchecked its supposed to give value '0' but instead '0' i got null. Anyone here how should it? Thank you.
Aucun commentaire:
Enregistrer un commentaire