I need some help with saving my meta data from a post. On the editpage I have the following input fields
<input type="text" name="data[color][]" value="red"/>
<input type="text" name="data[color][]" value="blue"/>
<input type="text" name="data[size][]" value="small"/>
<input type="text" name="data[width][]" value="30"/>
<input type="text" name="data[width][]" value="32"/>
If I click on save / update post the array is saved as
array(
color => array("blue"),
size => array("small"),
width => array("32"),
);
It has to be saved as
array(
color => array("red", "blue"),
size => array("small"),
width => array("30", "32"),
);
Wordpress get only the last items.
How can I fixed this?