dimanche 31 mars 2019

I cant store checkbox value into session

I am trying to put checkbox value into session. when i am trying to save it .it save the name field of the checkbox like foo[].

i am using larave . i am new in laravel.

<ul class="check-square"> 
<?php Session::put('selectsubservice','selectsubservice[]'); ?> @foreach($subservices as $subservice)
 <li><input type="checkbox" name="selectsubservice[]" value=""></li> 
@endforeach 
</ul> 





Aucun commentaire:

Enregistrer un commentaire