I can create my javascript array and store the values inside an array called ArmazenaIds
ArmazenaIds = new Array();
$('.checkboxs').each(function () {
var estadoDoCheck = $(this).prop('checked');
if(estadoDoCheck == true) {
id = $(this).attr('iddoemail');
ArmazenaIds.push(id);
alert(ArmazenaIds);
}
});
console.log(ArmazenaIds);
$.ajax({
url:'ajaxDoEnvioMensagem.php',
type:'post',
data:ArmazenaIds,
beforeSend:function() {
alert('carregando');
I would like to know how I can send this array with all the data inside to the ajaxDoFeedMessage.php and to be able to receive them in the php;
My goal is to get this data, get it in the messaging.php and soon after calling the php method of the objects.php;