Ajax data parameter not retrieved on server side

Ajax data parameter not retrieved on server side

zainbabazainbaba Posts: 1Questions: 1Answers: 0
edited February 2015 in Free community support

I am trying to pass parameter in AJAX call but its never retrieved on server side. I am using PHP editor library
Here is my code

$(document).ready(function() {

var date= new Date();
var currMonth= date.getMonth();
//alert("Month!!:"+currMonth+1);    
     ......
$('#reminder').dataTable( {
    "dom": "Tfrtip",
    'type': 'GET',
    "ajax": "php/table.JKBINSR.php",
    "data": {
      "currMonth":123
     },
    "columns": [......

and this is my server code

openlog("myapp", LOG_NDELAY, LOG_LOCAL2);
//syslog(LOG_ERR, {$_POST});
syslog(LOG_ERR, "**************");
syslog(LOG_ERR, $_POST['currMonth']);
syslog(LOG_ERR, $_GET['currMonth']);
syslog(LOG_ERR, $_REQUEST['currMonth']);
if (!isset($_POST['currMonth'])) 
{ syslog(LOG_ERR, "This doesn't Work!!!");}
$curmonth = date("m");
syslog(LOG_ERR,$_SERVER["REQUEST_METHOD"]);
closelog();

and this is what is printed on log

Feb 14 15:22:50 Wasims-MacBook-Pro.local myapp[3400]: **************
Feb 14 15:22:50 Wasims-MacBook-Pro.local myapp[3400]: 
Feb 14 15:22:50: --- last message repeated 2 times ---
Feb 14 15:22:50 Wasims-MacBook-Pro.local myapp[3400]: This doesn't Work!!!
Feb 14 15:22:50 Wasims-MacBook-Pro.local myapp[3400]: GET
This discussion has been closed.