Welcome Guest, Not a member yet? Register   Sign In
Controller is firing but I can't get the $_GET
#13

(This post was last modified: 03-25-2018, 09:43 AM by richb201.)

I changed over to POST and added
   xhr.setRequestHeader("Content-type", "application/json");
   xhr.setRequestHeader("X-Requested-With",'xmlhttprequest');

Now, I am getting this error:

[Sun Mar 25 11:57:47.099508 2018] [:error] [pid 13272:tid 1652] [client ::1:56672] PHP Deprecated:  Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

Any ideas?

I am also getting:

background.js:85 POST http://localhost/Subit_backend/register%....com%22%7D 400 (Bad Request)
proof that an old dog can learn new tricks
Reply


Messages In This Thread
RE: Controller is firing but I can't get the $_GET - by richb201 - 03-25-2018, 09:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB