global variables in a loaded page
<p>I have my index page which uses a script to load another page into a div </p>

<pre><code>  $('#TransportPlanning').click(function() { 
      mainpage = $('#FloatMain')

      mainpage.load('create_diary.php') 

  });
</code></pre>

<p>The page loads ok into my div, but I want to share php variables from one page to another, I thought the newly loaded page would be able to reference the main index variables but this is not the case , I have tried global but still not working </p>

<p>Any help please ?</p>
