Simple Checkbox to display panels

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 18, 2008   (RSS)

By avrom - July 18, 2008

Hi Dave,

I have a simple checkbox field in the editor sections to turn on and off the display of info boxes on the web page:

So if the record "info_box_1" is checked for a value of "1" I want to embed some code etc. I think this is most of what I need:

<?php if ($record['info_box_1']): ?>
Do html stuff here if info_box_1 = a value of 1
<?php endif ?>

Thanks Dave
Avrom