As jkon said, just use a cookie or a session. So lets say this is page1.php:
<?php
$var1 = 55;
setcookie('var1', $var1, time() * 60*60*24*7); //this cookie will expire in one week
?>
then in page2.php, if you want to access $var1 then:
<?php
$varFromAnotherPage = $_COOKIE['var1']; //now we will retrive the cookie and its value by using $_COOKIE[];
?>
godzab
Junior Poster in Training
65 posts since Jun 2012
Reputation Points: 0
Solved Threads: 5
Skill Endorsements: 0
If page two is included in page one you can use variables from page one in page two straight away. If they are different variables they should have different names.
broj1
Nearly a Posting Virtuoso
1,211 posts since Jan 2011
Reputation Points: 167
Solved Threads: 164
Skill Endorsements: 13