Jump to content

3.14159rate

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

1 Neutral

About 3.14159rate

  • Rank
    Newbie
  1. Thanks, that worked. I did need to change if($curpage->get($skill)) to if($curpage->get((string)$skill))
  2. Hey, so I have some code that goes out and finds all fields on a page that are labeled with "skill", all of these fields are checkboxes. I then want to display some text if the checkbox is checked, but I can't seem to figure out how to check if the checkbox is checked. $skills = $curpage->fields->find("label=Skill"); foreach($skills as $skill) { if($skill == "1") { echo"{$skill->name} "; } } what am I doing wrong? I normally write in C and not php (and not web stuff) so I don't really know the language super great.
×
×
  • Create New...