I am trying to save each value o a checbox or radio button value in a separate field in a table. What I had done is this: $valores = array(); // valores de las opciones de grados $nivel = $form->getValue(‘quform_1_46′);// variable que determina si es primaria o secundaria
foreach ($element->getOptions() as $option) { $valores[] = $option[‘value’]; }
Where $nivel is a select menu which say what element (checkbox group in this case) get to save. then I had created and array whose name is $valores, where I store the values of each option, the problem is that I save all the values eventhough they are not checked. What can I do to save only the checked values? Thanks for your help