"company=1&cat=3&cat=1"
my Javascript object "cat" have two values 1,3 and
var cat = [];
cat.push(1);
cat.push(2);
now i want post it to servr using AJAX , I am able to post the data
and I can see data appearing in PHP side but my problem is
when I capture posted data in php it is only showing one value of cat
actual data = company=1 , cat= [1,3];
here is my posted query = company=1&cat=3
this is what PHP print_r showing =
Array
(
["company] => 1
[cat] => 3
"
)
as you can see , the cat value is only one value instea of array (1,3)
what i am missing here ...