<form action="/group/{id}/save/group" method="POST">
@csrf
<table id="modal-table">
@foreach($user_list->get() as $f)
<tr>
<td>
<div class="image">
@if($f->follower->avatar_location)
<img src="" class="img-circle" style="max-height:50px;" />
@else
<img src="/assets/media/icons/socialbuttons/user.png" class="img-circle" style="max-height:50px;"/>
@endif
</div>
<div class="detail">
@if($f->follower->verified == 1)
<img id="verified_img_sm_mess_list" src="/assets/media/icons/socialbuttons/octagonal_star.png" alt="Recensioni">
@else
</h3>
@endif
<small id="mess_list_uname">@</small>
</div>
<input name="group" value="">
<input name="person" value="">
<button type="submit" class="btn-link">Go</button>
</td>
</tr>
@endforeach
</table>
</form>
Hey a small problem! in the Foreach loop and every member in the list, I tried some bare-bones to get each users id and hobby id (to add to database, but that's not important). For some reason, when I take the input 'name' and click the Go button, All "id's" of everyone in the list are executed, Not the individual id of each user. Meaning.. each user displays their individual id and a go button, but click go and all id's are collected, not just one. It's probably really obvious but any ideas why this is happening?? Thanks!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire