title: Call a PHP function after AJAX
body: <p>When a user submits the form on my page I use AJAX to submit the information without refreshing the page. After the user submits the information I want to run a PHP function that I have already written that displays the information. Is this possible or do I need to run another ajax function to update after</p>
  
  <pre><code>    $(function () {
         $('add').on('submit', function (e) {
            $.ajax({
              type: 'post',
              url: 'submit.php',
              data: $('this').serialize(),
              success: function () {
                alert('form was submitted');
              }
            });
            e.preventDefault();
            updateWords(); //PHP FUNCTION
          });
        });
  </code></pre>