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

By Chris - December 7, 2009

Hi Bob,

You can add a new section to display this new information on your page, but I'm afraid using a generic UserName and Password will allow anyone to whom you give access to be able to delete or modify all the records in that section which were added by the generic account.

We could definitely build you something with our consulting service which would allow visitors to submit entries to this section (either requiring your approval or not) which would avoid the problem I outlined above. Please let me know if you're interested in this.

I hope this helps!
All the best,
Chris

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