View Single Post
Old 09-07-2010, 11:00 AM
williamdswanepoel williamdswanepoel is offline
Join Date: Aug 2010
Posts: 28
Default Featured checkbox with several options?

Ok another question, how do I select a specific field inside a checkbox to be displayed?

I used the code:
                if (!empty($fields->features))
                    echo '<b>Features: </b>' . $fields->features . '<br />';
But this displays all the checkbox fields that has been ticked. I would like to split them up by adding them one by one so that they can be displayed in a table in two rows.

I tried the following code:
                if (!empty($fields->features->bar))
                    echo '<b>Features: </b>' . $fields->features->bar . '<br />';
But this code does not work any suggestions?