Submitting fieldsets 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 ?
You can use the #tree property on both fieldsets, e.g.

$form['fieldset_1'] = array(
  '#type' =&gt; 'fieldset',
  '#title' =&gt; t('Title 1'),
  '#tree' =&gt; TRUE,
);

$form['fieldset_1']['name'] = array(
  '#type' =&gt; 'textfield',
  ...
);

$form['fieldset_2'] = array(
  '#type' =&gt; 'fieldset',
  '#title' =&gt; t('Title 2'),
  '#tree' =&gt; TRUE,
);

$form['fieldset_2']['name'] = array(
  '#type' =&gt; 'textfield',
  ...
);