D7: form input name array need to build a form which has fields of type array.
php normally would:

&lt;input name="MyArray[0]" /&gt;
&lt;input name="MyArray[test]" /&gt;
&lt;input name="MyArray[1]" /&gt;

$array = $_POST['MyArray'];


already tried the following but is not input as an array:

$form["MyArray[1]"] = _d7_taxonomy_term_select($node_type-&gt;name, 2, $default_value);
$form["MyArray[2]"] = _d7_taxonomy_term_select($node_type-&gt;name, 2, $default_value);
$form["MyArray[3]"] = _d7_taxonomy_term_select($node_type-&gt;name, 2, $default_value);


someone help?
You need to specify them like this and set #tree to TRUE. Like this.

$form['MyArray']['#tree'] = TRUE;
$form["MyArray"][1] = _d7_taxonomy_term_select($node_type-&gt;name, 2, $default_value);
$form["MyArray"][2] = _d7_taxonomy_term_select($node_type-&gt;name, 2, $default_value);
$form["MyArray"][3] = _d7_taxonomy_term_select($node_type-&gt;name, 2, $default_value);