title: Fetch POST from JS and read response from PHP
body: <p>I'm collecting data in a form and 
  calling this js:</p>
  
  <pre><code>fetch('process.php', {
      method: 'POST',
      body: formData,
  }).then(response =&gt; alert( response ) );
  </code></pre>
  
  <p>process.php gets called correctly; i perform my ops and then i try to return a confirmation message, or a failure message like this:</p>
  
  <pre><code> echo json_encode('Upload completato correttamente');
  </code></pre>
  
  <p>But i can't get the message to show in the alert:
  i only get "[object promise]" and playing around with the response i can't seem to read the message.</p>
  
  <p>Any help?</p>