title: Pass on variables to popup screen
body: <p>Well the title says it all,
  I have a main screen where users see some data, and then they can click a button that opens a popup window using <code>window.open</code> .</p>
  
  <p>But in the popup window I want to show some variables that are defined on the main screen along with some other variables that are calculated in the popup screen.</p>
  
  <p>I tried using <code>$_SESSION</code>, but for some reason that doesn't work..
  if anyone has idea on how to "pass" on the variables from the main screen to the popup screen/file using either JavaScript or PHP?</p>
  
  <p>HTML :</p>
  
  <pre><code>&lt;input type="button" value="Klik hier om uw terugverdientijd te berekenen" id="btnTerugverdientijd" onclick="basicPopup('/wp-content/themes/blackbird/phpwizard/HTML5Application/public_html/terugVerdientijd.php')" /&gt;
  </code></pre>
  
  <p>JavaScript :</p>
  
  <pre><code>function basicPopup(url) 
  {
      popupWindow = window.open(url,'popUpWindow','height=500,width=500,left=1400,top=300,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');
  }
  </code></pre>
  
  <p>Thanks for the time!</p>