jeudi 17 octobre 2019

I am trying to save checkbox value in boolean type. if checked 1 will be saved if not 0 will be saved

I am trying to get value to store in database how can i do it.

<div class="col-md-6">
          <strong>CNIC :</strong><br>
          <input type="checkbox" value="Verified"   name="cnic"><strong>Verified</strong>
          @if (count($checkbox)==true)
          {value=1;}
          else 
          {value=0;}
          @endif
    </div>

Undefined variable: checkbox



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/35CChwN
via IFTTT

Aucun commentaire:

Enregistrer un commentaire