title: Is it possible to use GM_xmlhttpRequest to my data form using greasemonkey/tampermonkey?
body: <p>I am currently working on GM_getvalue but it only saves data on the local storage.
  I wanted to save the inputted values to my server where send.php is located.</p>
  
  <p>This is my code:</p>
  
  <pre><code>var $ = unsafeWindow.jQuery;
  
  $(document).ready(function() {
  
      if($("#save_form").html()){
          $("#save_form").submit(function(){
              var fullname = $("#name").val();
              var IDnumber = $("#id").val();
              GM_setValue("attendancelogs",GM_getValue("attendancelogs","")+fullname+" "+IDnumber+"&lt;br/&gt;");
          });
      }
  </code></pre>
  
  <p>Someone suggested me to use GM_xmlhttpRequest but i have no idea how to use it.
  He told me GM_xmlhttpRequest looks like this:</p>
  
  <pre><code>jQ(document).on("keyup", "form input", function () {
      let value = GM_getValue("name_full","");
      GM_xmlhttpRequest({
          method: "POST",
          url: "http://....",
          data: value,
          headers: {
              "Content-Type": "application/x-www-form-urlencoded"
          },
          onload: function(response) {
              alert(response);
              var json = $.parseJSON(response); 
          }
      });
  </code></pre>
  
  <p>And lastly, what would be the send.php code? </p>