title: how to call a php function from javascript or if that can't be done, some direction on what I should do
body: <p>I've created a jquery dialog modal box for logging into my website:</p>
  
  <pre><code>$('#login').dialog({
    modal: true,
    position: 'center',
    autoOpen: false,
    title: 'Login',
    height: '750px',
    width: '300px',
    zIndex: 9999,
    closeOnEscape: false,
    buttons: {
      'Login': function() {
        $(this).dialog('close');
        $('#mask').hide();
        Login();
      },
      'Cancel': function() {
        $(this).dialog('close');
        $('#mask').hide();
      }
    }
  });
  </code></pre>
  
  <p>I've created a php function called Login() in a separate php file, is it possible for me to call that php function when they click on the Login button? If not, how can I get that dialog's Login box to use php to attempt logging in.</p>