I need to pass a jQuery array to a php array. How do I do this?
The jQuery array is coming back to a main php page from a .getJSON call. Following is my script:
Code: Select all
$('#historyBttn').click(function(){
var History_Arry = new Array();
console.log("inside history click");
$.getJSON("ol_LogHistory.php", function(data) {
History_Arry = data;
console.log(History_Arry);
});
});How can I take the $.getJSON data and pass it to php?
Thanks in advance for the advice.
Pavilion