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.