title: jquery response back
body: <p>I am sending an ajax call to another page. I want to get a value of a variable, lets call it x, back from that page on success. How can I do that. here is my ajax code</p>
  
  <pre><code>$.ajax({
          type: 'POST',
          url: 'myotherpage.php',
          data: 'loginname=' + loginname ,
          success: function(success) {
              if(success == 1) {
  
              //get the variable value here           
             } else {
  
             //do nothing
  
              }
          }
      });
  </code></pre>