(Solved)How to send array of data to server
(Solved)How to send array of data to server
jemz
Posts: 131Questions: 40Answers: 1
how do i send array of data
example:
arrayid = ["039393","03838383","09383883"];
$('#mytable').dataTable({
"ajax": "./getdata.php?id=" + arrayid,
"scrollY": "200px",
"scrollCollapse": true,
"deferRender": true,
"columns": [
{"data": "idno"},
{"data": "studnetname"},
{"data": "address"},
]
});
but when i validate this to server
if(is_array($_GET['id']){
echo "array";
}else{
echo "not array";
}
it always not array,how do i pass array of data to my server ?
This discussion has been closed.
Answers
Okay I solved it, using ajax.adata