How can i read this data i'm getting on my page via post? This are the variables as they appear on firebug under POST.
list[0].firstName =test 1
list[0].name =test
list[1].name =test
I know that php replaces dots with underscores so i can access something like "address.box" by doing:
$_POST[address_box];
but i really can't figure out how to access all the above data. Seems like that php doesn't want to read whatever comes after the square brackets, overwriting all the fields with the same index (list[0].firstName seems to get overwritten by list[0].name .
Any solution?
EIDT: Here a var_dump of the data:
address.number 1
list[0].firstName firstname0
list[0].name name0
list[1].name name1
array(2) { ["list"]=> array(2) { [0]=> string(10) "firstname0" [1]=> string(5) "name1" } ["address_number"]=> string(1) "1" }