title: Echo PHP message after AJAX success
body: <p>I have a modal that will display when the user clicks a delete button. Once they hit the delete button I am using AJAX to subimit the form. Eveything works fine, but it is not display my success message which is set in PHP.</p>
  
  <p>Here is my AJAX code:
  </p>
  
  <pre><code>function deleteUser(){
      var id = &lt;?php echo $userdetails['id'] ?&gt;;  
      $.ajax({
          type: "POST",
          url: 'admin_user.php?id=' + id,
          data: $('form.adminUser').serialize(),
          error: function(e){
                  alert(e);
              },
          success: function () {
             // This is empty because i don't know what to put here.
          }
      }); 
  }
  </code></pre>
  
  <p>Here is the PHP code:
  </p>
  
  <pre><code>if ($deletion_count = deleteUsers($deletions)) {
          $successes[] = lang("ACCOUNT_DELETIONS_SUCCESSFUL", array($deletion_count));
      } else {
          $errors[] = lang("SQL_ERROR");
      }
  </code></pre>
  
  <p>And then I call it like this:</p>
  
  <pre><code>&lt;div class="col-lg-12" id="resultBlock"&gt;
     &lt;?php echo resultBlock($errors,$successes); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I use AJAX it does not display the message. This works fine on other pages that does not require AJAX to submit the form.</p>