Using checkbox to highlight message

3 posts by 3 authors in: Forums > CMS Builder
Last Post: June 25, 2015   (RSS)

By degreesnorth - June 21, 2015

Hi anyone

I am using the checkbox function to include a "special message".  If the checkbox is ticked, then it says special event.  However, it's including a number 1 in front of the special event message, and I can't find that in my code.  Any ideas where that's coming from?

Thanks in advance.

By gkornbluth - June 22, 2015

Could you post the code?

Thanks,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By gregThomas - June 25, 2015

Hi degreesnorth,

When I've had a similar issue in the past, it's usually because I'm echoing/printing something that's set to true, for example:

echo print_r(array('test')); 

results in an output of: 

Array ( [0] => test ) 1

As when print_r runs successfully it returns true, so the echo prints a value of 1 for true. 

Cheers,

Greg

Greg Thomas







PHP Programmer - interactivetools.com