Skip to main content
added 177 characters in body
Source Link
edpaez
  • 1.6k
  • 1
  • 12
  • 22

I believe that if you see the posted data, you'll see a field number with the value selected in the input. In laravel you access to such variables as

$number = Input::get('number'); ... 

Hope it helps!

EDIT You also need to open and close the form:

{{ Form::open(array('url' => 'foo/bar')) }} {{ Form::selectRange('number', 2, 12) }} {{ Form::submit('Click Me!') }} {{ Form::close() }} 

EDIT2 Your routes.php should have something like this:

Route::post('foo/bar', function() { $number = Input::get('number'); ..... }); 

I believe that if you see the posted data, you'll see a field number with the value selected in the input. In laravel you access to such variables as

$number = Input::get('number'); ... 

Hope it helps!

EDIT You also need to open and close the form:

{{ Form::open(array('url' => 'foo/bar')) }} {{ Form::selectRange('number', 2, 12) }} {{ Form::submit('Click Me!') }} {{ Form::close() }} 

I believe that if you see the posted data, you'll see a field number with the value selected in the input. In laravel you access to such variables as

$number = Input::get('number'); ... 

Hope it helps!

EDIT You also need to open and close the form:

{{ Form::open(array('url' => 'foo/bar')) }} {{ Form::selectRange('number', 2, 12) }} {{ Form::submit('Click Me!') }} {{ Form::close() }} 

EDIT2 Your routes.php should have something like this:

Route::post('foo/bar', function() { $number = Input::get('number'); ..... }); 
added 222 characters in body
Source Link
edpaez
  • 1.6k
  • 1
  • 12
  • 22

I believe that if you see the posted data, you'll see a field number with the value selected in the input. In laravel you access to such variables as

$number = Input::get('number'); ... 

Hope it helps!

EDIT You also need to open and close the form:

{{ Form::open(array('url' => 'foo/bar')) }} {{ Form::selectRange('number', 2, 12) }} {{ Form::submit('Click Me!') }} {{ Form::close() }} 

I believe that if you see the posted data, you'll see a field number with the value selected in the input. In laravel you access to such variables as

$number = Input::get('number'); ... 

Hope it helps!

I believe that if you see the posted data, you'll see a field number with the value selected in the input. In laravel you access to such variables as

$number = Input::get('number'); ... 

Hope it helps!

EDIT You also need to open and close the form:

{{ Form::open(array('url' => 'foo/bar')) }} {{ Form::selectRange('number', 2, 12) }} {{ Form::submit('Click Me!') }} {{ Form::close() }} 
Source Link
edpaez
  • 1.6k
  • 1
  • 12
  • 22

I believe that if you see the posted data, you'll see a field number with the value selected in the input. In laravel you access to such variables as

$number = Input::get('number'); ... 

Hope it helps!