$_REQUEST and $_POST are empty after POST request

ultimatex

New Member
I am trying to make a post request via jQuery to a PHP script. Get works fine and I can find my passed in vars in $_GET and $_REQUEST (after doing a var_dump they show up just fine). However, when I do a POST request, $_POST is empty and my vars do not show up in $_REQUEST.Do you have any ideas why this would be happening? Here is the jQuery code. (this also happens when using the Rest Console Chrome extension).\[code\]var req = $.ajax({ type: "POST", url: "http://myserver.com/phpscript.php", data: {param1: "myVal1", param2: "myVal2"}, cache: false });\[/code\]
 
Top