$_POST undefined from remote server POST

Solutions

Drupal removes the $_POST/$_GET in the system, just use $_REQUEST instead.

Tags: API / Drupal / Post

Similar questions

drupal store and retrieve variable from $_POST array
This is really simple question for the user who are using DRUPAL for many years.But for me it is creating a big issue. I already made a form using the drupal form api.But after submit the form I want to store form data in the "$_POST" and print the data to another module's page.I get the data on the 2nd page(module's page where I want to show the f...
How can I add a sub-array structure in my results? $_POST
I'm building a form. In that form I have a lot of checkboxes. Normally, It's possible to make an array of some checkboxes (with name attribute). Normally I would have this result with print_r($_POST); I tried to add the name attribute, but the $_POST takes the structure of $form. But how can I add a sub-array structure in my results? This is what I...
How to get $_POST and $_GET parameters
I ajaxly call a route and pass data to it, In my controller, I want to get $_POST['var'] , $_POST['var2'], it seems because of using HttpFoundation in drupal 8, $_POST and $_GET are not exists in old method, How I can access $_POST parameters in custom Controller?
Getting $_POST empty in AJAX callback
I just want to send address information to drupal for check content existence through the AJAX. Request is sending successfully and callback function also executing. but I am not getting any data in $_POST array. here is my AJAX code. This is callback routing & function At where I am making mistake? is there any other way? Or is there any probl...
Use $_POST after submit form
I create a form and a page with controller in Drupal 8. I want print value of my example input after submit form. For example my input name is "Tel_number". My code in controller page is: But no resault print.
using $_POST values in form alter to add validation
it's not the first time that i get into trouble using $_post in a node form alter, this time i'd like some assistance. basically, i need to pass some parameters to a form (and i should not pass the appended to the url, as query parameters). but $_POST values don't work as expected (they work until reaching validation phase). So.. in a page i pass a...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.