I have this array
var car = new Array();
car['brand'] = "Ford";
car['color'] = "red";
car['type'] = 1;
now, i tried sending this but php only tells me car is a undefined index:
$.post('regCar.php', { "car[]": car }, function(data) {
// some other lol here ...
});
Sending in "car[]": ["Ford", "red", 1] works fine :( How can i pass in an associative array to php?
print_r($_POST)and see what you get.