I have fieldsets in my form like this
$form['fieldset_1']['name']
and then
$form['fieldset_2']['name']
but when I submit the form and access the values item in $form_state there is only one name value - not as expected ['fieldset_1']['name']
and ['fieldset_2']['name']
can someone help how the form could be submitted and to have access to bot name values ?
$form['#tree'] => TRUE
in your form if you want submitted data in tree structure.