I have this code
@foreach($files['files'] as $file)
<tr>
<td><input type="checkbox" name="check_list[]" value="{{$file}}"></td>
<td>{{file['id']</td>
<td>{{file['name']</td>
<td>{{file['type']</td>
<td>{{file['modified']</td>
</tr>
@endforeach
$file contains all the details of 1 file like name,id,modified date,etc. Can i pass them to checkbox? What I want to happen: when user clicks checkbox, all details of file will contain checkbox. if i concatenate them, i will have a problem in grouping them. the code above inputs Array as string. I want to pass $file - all details of 1 file, to checkbox. so when user checks checkbox, will give an array of files with their details..
if i put them out of foreach, it will only have one checkbox. im developing a system and i was hoping if someone could help me out. im stuck on this problem
pls help..
Aucun commentaire:
Enregistrer un commentaire