Sending multidimensional array via $.post
Hallo!
thanks for your time;
I'm having troubles with sending array via $.post (it sends just keys)
my code:
$('#send1').click(function() {
var my = [];
for (i=0; i<2; i++) {
my[i] = [];
my[i]['name'] = 'liza'+i;
my[i]['age'] = '43'+i;
my[i]['options'] = 'none'+i;
}
$.post("http://field.in.ua/index.php/welcome/data", { 'choices[]': my },
function(data){
alert(data);});
});