passing a array to php via ajax?
<p>I have this array</p>

<pre><code>var car = new Array();
car['brand'] = "Ford";
car['color'] = "red";
car['type'] = 1;
</code></pre>

<p>now, i tried sending this but php only tells me car is a undefined index:</p>

<pre><code>$.post('regCar.php', { "car[]": car }, function(data) {

    // some other lol here ...

});
</code></pre>

<p>Sending in <code>"car[]": ["Ford", "red", 1]</code> works fine :( How can i pass in an associative array to php?</p>
