how do you store the values on the database?
this is a laravel example: http://laravel.com/docs/html#checkboxes-and-radio-buttons
you can also do it the old way
<input type="checkbox" name="like" value="1" <?php if($user->like==1) { echo 'checked'; } ?> />
If you are using Bootstrap or Foundation framework I highly suggest this package to make things like checkboxes a whole lot easier: https://github.com/Anahkiasen/former
Thank you, extjac! That worked perfectly. I can't believe I missed that in the documentation... but it helps for me to have the old way as well.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community