Ajax data parameter not retrieved in php file

Ajax data parameter not retrieved in php file

wasimwaniwasimwani Posts: 19Questions: 5Answers: 0

I am trying to pass some additional parametr in Ajax call but same are not retrieved in .php file.I really dont know why.
P.S I am using php editor library

Here is my js code

$('#reminder').dataTable( {
    "dom": "Tfrtip",
    'type': 'POST',
    "ajax": "php/table.JKBINSR.php",
    "data": {
      "currMonth": 123
     },
    "columns": [
        {
            "data": "accntno"
        },
        {
            "data": "accnttitle"
        },
        {
            "data": "alias"
        },
        {
            "data": "doi"
        },
        {
            "data": "doe"
        },
        {
            "data": "amount"
        },
        {
            "data": "POLNO"
        },
        {
            "data": "remark"
        }
    ],
    "tableTools": {
        "sRowSelect": "os"
    }
} );

and here is the php code

<?php

openlog("myapp", LOG_NDELAY, LOG_LOCAL2);
syslog(LOG_ERR, $_POST['currMonth']);
syslog(LOG_ERR, $_GET['currMonth']);
syslog(LOG_ERR, $_REQUEST['currMonth']);
syslog(LOG_ERR, "JAVA ROCKSssss");
syslog(LOG_ERR, "php sucks");
closelog();
This discussion has been closed.