Hi,
 
 Here have two pages; page1.php and page2.php.
 
 I defiend  a variable in page1.php as $storedfrom = $_SERVER["HTTP_HOST"] .
 $_SERVER["REQUEST_URI"];
 
 I want to access $storedfrom variable from page2.php without passing it
 through URL link.
 
 How it can access by using session variable or global variable?
 
 Expecting yours' valuable suggestion.
 
 Rgds, Leelakh Ran
_____________________
in page1.php : 
<?php
session_start();
$storedfrom = $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
$_SESSION['storedfrom'] = $storedfrom;
.
.
.
?>

in page1.php : 
<?php
session_start();
.
.
// code using $_SESSION['storedfrom']
.
.
?>

best regards,
~Pallav







       
---------------------------------
 Rise to the challenge for Sport Relief with Yahoo! for Good

[Non-text portions of this message have been removed]

Reply via email to