title: PHP - Passing variables from one page to another
body: <p>I am trying to pass on the value of one variable from one PHP page to another PHP page, but for some reason, it's not working..</p>
  
  <p>Here's my code for phpOne.php:</p>
  
  <pre><code>&lt;?php
      $x = 100;
      $_SESSION['sessionVar'] = $x;
      echo "$x";
  ?&gt;
  </code></pre>
  
  <p>And here's my code for phpTwo.php:</p>
  
  <pre><code>&lt;?php
  $x = $_SESSION['sessionVar'];
  echo "$x";
  ?&gt;
  </code></pre>
  
  <p>Thanks in-advance!
  Tom!</p>