(Solved)How to send array of data to server

(Solved)How to send array of data to server

jemzjemz Posts: 131Questions: 40Answers: 1
edited March 2015 in Free community support

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 ?

Answers

  • jemzjemz Posts: 131Questions: 40Answers: 1

    Okay I solved it, using ajax.adata

This discussion has been closed.