My problem is
jQuery.ajax({
type: "POST",
url: "../ajax/si-notificar_investigacion.php",
data: {
idincidente: $("#idincidente").val(),
arrControlls : arrControlls
},
dataType: 'json',
async: false,
success: function(datos) {
alert(datos);
}
});
this is my ajax
Now I use arrControlls variable as array which is comes from another function
now if arrControlls is like
[0] = "test1";
[1] = "test1";
[2] = "test1";
then it is okey I get this variable as an array in action page
BUT if I use value like this
['sid_1'] = "test1";
['sid_2'] = "test1";
['sid_3'] = "test1";
then I do not get variable in action page WHY?
adding this lines for more detail
I am using jquery function for getting data
function getAllControllValue()
{
var arrControlls = new Array();
$("#container-div input").each(function(){
arrControlls[$(this).attr('id')] = $(this).val();
});
return arrControlls;
}