【发布时间】:2014-01-08 16:29:27
【问题描述】:
以下代码在数组中获取复选框值的正确语法是什么
这里是复选框数组:
@foreach($p->products as $pp)
<input type="checkbox" name="product[]" value="{{ $pp->name }}"> {{ $pp->name }}<br />
@endforeach
这就是我获得价值的方式
Input::get('product', 0) // this part how can i get the value from checkbox array if the user select more than one?
【问题讨论】: