Possible Duplicate:
Using value passed to php by jQuery.getJSON
Hi I have this code which is passing data through:
var output = [];
$.getJSON(
'DisplayMap.php',
{ runDate : $('input[name="date"]').val() },
function(data) {
for (var i in data.b) {
output.push(new google.maps.LatLng(data.b[i].Ya, data.b[i].Za));
}
}
);
My question is, how would I handle that data and assign it to a php variable. Would I have to decode it?
Thanks in advance