title: How to pass data to another page using jquery ajax
body: <p>I have a problem on ajax call.</p>
  
  <p>Here is my code regarding the ajax:</p>
  
  <pre><code>$('#Subjects').click(function() {
      $.ajax({
          type: 'POST',
          url: '../portal/curriculum.php',
          data: 'studentNumber='+$('#StudentID').val(),
          success: function(data)
          {
              $('#curriculum').html(data);
          }
      });
  });
  </code></pre>
  
  <p>When I echo <code>studentNumber</code> on another page, the <code>studentNumber</code> is <code>undefined</code>. Why is that?</p>