title: POST params are null on server when sending a post request using AXIOS in react
body: <p>This is my code which I call to issue a post request (everything from the docs).
  I'm using Axios in React with Redux.</p>
  
  <pre><code>  export function postRequest(url) {
      axios.post(url, {
        param_0:1,
        param_1:22
       })
        .then(response =&gt; {
          console.log(response);
  
       })
        .catch((err)=&gt;{
          console.log("Error on issuing post request");
  
       })
    }
  </code></pre>
  
  <p>Calling my function</p>
  
  <pre><code>databaseCall.postRequest('http://myurl.com/input.php');
  </code></pre>
  
  <p>It gets to my PHP script (runs SQL insert statement) and runs successfully apart from my _POST params being null. My params somehow don't get to the server.</p>
  
  <p>I get the response from .then but params aren't there therefore my SQL INSERT fails.</p>
  
  <p>What could be wrong here?</p>
  
  <p>I don't gen any errors on the frontend just index undefined for _POST params on the backend.</p>
  
  <p>Here is the requested PHP code:</p>
  
  <pre><code>$stmt = $conn-&gt;prepare("INSERT INTO basic_person 
  (id, age, weight, weight_si, height, height_si, gender, race) 
  VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
  
  $stmt-&gt;bind_param("iiisisss", $id, $age, $weight, $weight_si, $height, $height_si, $gender, $race);
  if (isset($_POST["param_0"])) {
      echo "SET!";
  } else {
      echo "it is not set";
  }
  $id        = $_POST['param_0'];
  $age       = $_POST['param_1'];
  $weight    = $_POST['param_2'];
  $weight_si = $_POST['param_3'];
  $height    = $_POST['param_4'];
  $height_si = $_POST['param_5'];
  $gender    = $_POST['param_6'];
  $race      = $_POST['param_7'];
  
  $stmt-&gt;execute();
  </code></pre>
  
  <p>Note: My get request with params works without any problem</p>