text: let xhr = new XMLHttpRequest();    
  xhr.onreadystatechange = function() {
    if (xhr.readyState == 4) {
      if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
        alert(xhr.responseText);
      } else {
        alert("Request was unsuccessful: " + xhr.status);
      }
    }
  };
  xhr.open("post", "postexample.php", true);
  let form = document.getElementById("user-info");      
  xhr.send(new FormData(form)); 
  XHRFormDataExample01.js
  