I need to pass an array of numeric values from jQuery to a php file. I fill this array in my code using the following line:
Area_Array.push({name: 'A[]', value: ui.value});
Then I serialize the array to use it in an URL
$.param(Area_Array);
I can see that the array is built correctly using:
alert(decodeURIComponent($.param(Area_Array)));
which returns, for instance, the following:
A[]=0&A[]=1&A[]=2
that is fine for me, but I don't know now how to insert it inside my $.get which is also sending another parameters:
$.get("some.php", { b1 : 0, b2 : 5, b3: 20, b4 : 1},function(foo){});
But I want my built URL to have the following structure:
http://somehost/some.php?b1=0&b2=5&b3=20&b4=1&A[]=0&A[]=1&A[]=2
Could you please help me?
Thank you!!! :)
Alexandra