This is naturally output in HTML. The question is how to make the tag
<input type="text" name="1"/>
with each iteration of the foreach loop just added 1 in the name attribute
<?foreach($result as $request):?> <tr> <td><?=$request['name']?> <?=$request['surname']?></td> <td><input type="text" name="1"/><input type="hidden" name="<?=$request['id']?>"/> </td> </tr> <?endforeach?>