Support the ongoing development of Laravel.io →
Input Database Blade
Last updated 7 months ago.
0

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' )

Last updated 7 months ago.
0

If you use $_GET for Input::get(), then how to use for $_POST ?

Last updated 7 months ago.
0

if you use the following it will check both $_POST and $_GET

Request::get('something')
Last updated 7 months ago.
0

I am pretty sure that Input::get() will check both $_POST and $_GET.

Last updated 7 months ago.
0

I tried this.

<option value="{{{ $day }}}" @if( isset(Input::old()['day']) && Input::old()['day'] == $day) selected='selected' @endif> {{ $day }} </option>
0

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')
Last updated 6 years ago.
0

Sign in to participate in this thread!

Cloudways

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.