title: Assign Javascript variable to PHP with AJAX
body: <p>I understand...</p>
  
  <ul>
  <li>the disparity between PHP being server-side and Javascript being client-side.</li>
  <li>AJAX can patch this issue.</li>
  <li>the XMLHttpRequest object is significant.</li>
  </ul>
  
  <p>However, I still can't work out how to pass the variable between the two languages.</p>
  
  <p>Any assistance would be much appreciated!</p>
  
  <p>EDIT: Thanks for your replies so far, I should clarify that I would like to do this without loading a new page.</p>