when you use {{ $something }}
, it's translated to <?php echo $something; ?>
, review this in your code,
also, dont use $_GET['prop']
, use Input::get( 'prop' )
If you use $_GET for Input::get(), then how to use for $_POST ?
if you use the following it will check both $_POST and $_GET
Request::get('something')
I am pretty sure that Input::get() will check both $_POST and $_GET.
I tried this.
<option value="{{{ $day }}}" @if( isset(Input::old()['day']) && Input::old()['day'] == $day) selected='selected' @endif> {{ $day }} </option>I did this way
@foreach($ranges as $range)
<option {{{ (Input::old('no_of_person')== $range)? 'selected="selected"' :'' }}} value="{{ $range }}">{{ $range }} </option>
@endforeach`
and get the values to the controller as
Input::get('no_of_person')
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community