This is my function that get's all the id's ad stores them in an array them it sends the array to the php page. Using google chrome network tool i can see the request which has the array in the header.
$(document).ready(function() {
$("#insert_articoli").click(function(){
var id_articoli = [];
$.each($("input[name='articoli']:checked"), function(){
id_articoli.push($(this).val());
});
$.ajax({
type: "POST",
url: "componi_prodotto.php",
data: {data : id_articoli },
success: function(){
alert("OK");
}
});
});
});
I can't find a way to retrieve this array from my php page. Please help.