Using checkbox to highlight message

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

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 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