title: get variable to jQuery from php
body: <p>this is my variable in setings.php </p>
  
  <pre><code>$error = output_errors($errors);
  </code></pre>
  
  <p>i want to echo out in my jQuery file 'settings.js'</p>
  
  <pre><code>   $('#save_settings').click(function(){
  
      var first_name = $('#first_name').val();
      var last_name = $('#last_name').val();
      var email = $('#email').val();
  
      $.post('settings.php', { first_name: first_name, last_name: last_name, email: email}, function(data){
          $('#show').html('settings saved').fadeIn(500).delay(2000).fadeOut(500);
          alert(data);
      });
  
  
  });
  </code></pre>