/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
foreach($Categories as $h => $ValueC){ foreach ($CategoryGroups as $KeyC => $ValC) { if($ValueC['id'] == $KeyC){ echo "<pre>"; echo "</pre>"; $checkobj->setChecked(true); } } } $checkboxen[] = $checkobj; } $form->addGroup($checkboxen, 'categ', $_lang['daten']['category'], '', true);