title: AJAX variable processing
body: <p>I need to create an ajax processing file, where this javascript is to send the variable myGroupId to, then send it back to my edit.php file where I can then run a query off of the returned file.</p>
  
  <p>I am not experienced with ajax, so I need to know how the processing file should look regarding the javascript variable being converted to a php variable. I know I need to create another folder to send the javascript variable.</p>
  
  <p>I just need to know how to do the ajax processing file (or whatever you want to call it).</p>
  
  <p>Here is my javascript:</p>
  
  <pre><code> &lt;script type="application/javascript"&gt;
      $(document).on("click", ".open-EditRow", function () {
      var myGroupId = $(this).data('id');
      $(".modal-body #groupId").val( myGroupId );
  
      // ajax call
      var url = "?groupId=" + encodeURIComponent(myGroupId);
      $.get(url, function(data){
      // do something here
      });
        });
    &lt;/script&gt;
  </code></pre>
  
  <p>I'll call the separate file ajaxProcessing.php.  Now if someone could show me how that file should look to convert myGroupId to a php variable, I would be grateful.</p>
  
  <p>When it is sent back to my edit.php file, I should be able to reference it as $_GET['groupId'].</p>
  
  <p>Thank you in advance.</p>