1

I have to define a checkbox within a Laravel 4 app. But at the same time it is a Bootstrap 2.3.1 site, and i need to pass also Input::old How can i do it?

This is how it was in html:

            <label class="checkbox">
            <input type="checkbox" name="extraBed" value="extra" />
               <span class="blue"><strong class="blue"><span><i class="icon-plus"></i></span> Extra bed</span>
            </label>

This is how i have tried to write in Laravel4:

            <label class="checkbox">            
            {{ Form::checkbox('extraBed', Input::old('extraBed'), 'extra' }}
               <span class="blue"><strong class="blue"><span><i class="icon-plus"></i></span> Extra bed</span>
            </label>

But i get this error:

syntax error, unexpected ';'

Someone knows how can i do it? Thank you!

1 Answer 1

1

You forgot a closing tag.

{{ Form::checkbox('extraBed', Input::old('extraBed'), 'extra') }}

see if that helps!

Sign up to request clarification or add additional context in comments.

5 Comments

Well closing parenthesis to be exact.
Oh my God what a shame! :) Thank you!
Yes, after one minute i will be allow to check the answer as correct!
If you want i have made a similar question here: stackoverflow.com/questions/19904059/…
Hei man! If you are not completely bored by these problems, here is the last question about my form :) stackoverflow.com/questions/19904984/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.