I've just tried and more or less given up on sending an array to a jQuery post function, which are then layed out as POST variables.
I've read a lot of the similar questions on here, but none seems to quite get it.
I tried all I could, closes was the following
function sendValue(requestArray, requestAction){
$.post("requests.php", { request: requestAction, 'requestArray[]': function () { $.each(requestArray, function(key, value) { return key: value; }); } }, function(data){ $('#display').html(data.returnFromValue);
}, "json");
}
wrong tree, barking? I have since got this to work by serializing the what was the requestArray and passing to PHP to be parse_str, but any guideance might well help get this the way I wanted.