вот js :
function DataDelete(){
var full = new Array();
var box =document.getElementsByClassName ("chk");
for(i=0;i<box.length;i++){
if(box[i].checked==true) full.push(box[i].id);
}
$.getJSON(
'system/faq_del.php',
{
Full : ["1","2","3"]
},
dlt
);
}
function dlt(obj){
alert(obj.error);
}
пхп код
<?php
header('Content-Type: text/javascript; charset=windows-1251');
$full = json_decode($_REQUEST[Full]);
?>
{
error: '<?php echo $full;?>'
}
alert выводит последнее число в массиве - 3