CHECKBOXES NOT WORKING!

15 posts by 4 authors in: Forums > CMS Builder
Last Post: April 3, 2010   (RSS)

By Chris - December 2, 2009

Hi Bob,

You'll probably get faster support responses in our forum since there are a few of us who help out here.

Glad to hear you've got things working! :)
All the best,
Chris

Re: [chris] CHECKBOXES NOT WORKING!

Chris...

I want to do the following... How?

The list of paid advertisements with icons which you resolved for me is at the top of a given page. I now want Non-Advertisers to be able to post to a Section which will be BELOW the paid advertisers ads.... This section will simple carry Business Name, City, State and Phone # [NO IMAGES, NO ICONS, ETC.] just an alpha list on the same page.

EXAMPLE: http://www.linkvermont.com/skierlodging_killington_pico.php I'm talking about what is below LISTINGS ONLY. I pasted this in but I want it as a Section anyone can post to if I give them a generic UserName & Password. Keeping up with the changes in listings such as these has become more than time consuming.

If you could get back to me today it would be great... I'd have the weekend to make it happen.

Best,

Bob

Re: [chris] CHECKBOXES NOT WORKING!

By studio-a - April 3, 2010

Hello,

We have read this thread of information, but for some reason our situation does not work following the code listed above. Below is our problem.

We have a table called Jobs and a list field within the editor using check boxes called job_type. See below:

Company Name: [text field]
Job Title: [text field]
Description: [text box ]
Type of Job: fulltime [ ] parttime [ ] contract [ ]

NOTE: fulltime, parttime, contract, are the list names inside of field list displayed as check boxes job_type.


We wish to simply display the various icon images which are associated with EACH Job Type in the listing of each job record. Please keep in mind, there can be more than one icon that needs to be displayed so simply verifying if the checkbox is true or false is not our situation. We have tried to follow the code listed above in this thread, but does not work. Below is our code.


<?php foreach ($jobRecords as $record): ?>
Company Name: <?php echo $record['company_name'] ?><br/>
Job Title: <?php echo $record['job_title'] ?><br/>
Description: <?php echo $record['description'] ?><br/>
<?php if ($record['job_type'] == “parttime” ): ?><img src="../images/icon_part.png" alt="Part-Time" /><?php endif ?>
<?php if ($record['job_type'] == “fulltime” ): ?><img src="../images/icon_full.png" alt="Full-Time" /><?php endif ?>
<?php if ($record['job_type'] == “contract” ): ?><img src="../images/icon_contract.png" alt="Contract" /><?php endif ?>
<hr />
<?php endforeach ?>


Your help is appreciated!

Re: [studio-a] CHECKBOXES NOT WORKING!

By studio-a - April 3, 2010 - edited: April 3, 2010

After continuing our search we found another post that solved our problem. Below is the link to the post. Thanks!


http://www.interactivetools.com/forum/forum.cgi?post=74818