Tick Box Function
3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 20, 2010 (RSS)
By KCMedia - April 20, 2010
Hi
I have this multi section and i have setup a tick box so that when it is ticked i want to show up a JUST SOLD next to the name so i have the code there for it but i need to know what the php statmement should be so it will only show up when it is ticked and not there when it isnt ticked
find attached the php file.
this the php code from the viewer
<?php echo $record['sold'] ?>
I have this multi section and i have setup a tick box so that when it is ticked i want to show up a JUST SOLD next to the name so i have the code there for it but i need to know what the php statmement should be so it will only show up when it is ticked and not there when it isnt ticked
find attached the php file.
this the php code from the viewer
<?php echo $record['sold'] ?>
Thanks
Craig
KC Media Solutions
www.kcmedia.biz
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Tick Box Function
By Jason - April 20, 2010
Hi,
You can try this:
With this you can put any html tags you want around the "Just Sold" and it will only show up if "sold" was checked.
Hope this helps.
You can try this:
<?php if($record['sold']): ?>
Just Sold.
<?php endif ?>
With this you can put any html tags you want around the "Just Sold" and it will only show up if "sold" was checked.
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Tick Box Function
By KCMedia - April 20, 2010
Hi Jason
That did the trick great thank you
That did the trick great thank you
Thanks
Craig
KC Media Solutions
www.kcmedia.biz
Craig
KC Media Solutions
www.kcmedia.biz