can somehow unchecked checkboxes be included when I have a form with a dynamic number of checkboxes (name='golyPenalta[]'
) and in submit I get them using $form->getHttpData($form::DATA_TEXT, "golyPenalta[]");
? Only the ones that have been checked are placed in the field and have their own order, so I do not know which penalty belongs to which goal:
golyCas => array (3)
0 => "55" (2)
1 => "60" (2)
2 => "70" (2)
golyPenalta => array (2)
0 => "on" (2)
1 => "on" (2) // <- this should be part of third goal so index should be 2
Aucun commentaire:
Enregistrer un commentaire