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!

By weblinks - December 4, 2009

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

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!