When I pick up the form values in the controller, I skip the null and I do not know why
<body>
<form action="FormTablaJuego" method="POST">
{!! csrf_field(); !!}
@for($i=0;$i<11;$i++)
{!! \Session::get('num'); !!} * {!! $i !!} = <input type='text' name='caja[]' value=''><br/>
@endfor
<input type='submit' value='Comprobar' name="btncomprobar"><br/>
<input type='submit' value='Rendirse' name="btnrendirse"><br/>
</form>
</body>
On the route:
Route::post('FormTablaJuego' ,'EduController@jugar');
On the controller:
public function jugar(Request $request)
{
echo var_dump($request->get('caja[]'));
}
I show it in the controller to know what is correct before continuing. But it returns NULL