How to convert this form structure to a PHP array? I can also edit HTML, so every idea is good ...

If the checkbox is selected, then this data should be inserted into the PHP array by saving, the necessary structure:
0 =>
'group' => 'group_a',
'type' => 'type_yellow',
'desc' => 'now to convert'
1 =>
'group' => 'group_b',
'type' => 'type_orange',
'desc' => 'needed to order'
As an example, I tried to specify inputthe element name as arrayhow description[], but I can not control whether the checkbox is checked or not ...
source
share