Session Variable Problem
Posted: Fri Sep 02, 2005 8:47 am
Hi
i want to use SESSION Variables but i cant get the Variable Value
on other Pages.
here is my code:
Page 1:
Page 2:
Page 2 Do not Print Anything!
whats the Problem?
Burrito: Please use php tags when Posting Code In The Forums
i want to use SESSION Variables but i cant get the Variable Value
on other Pages.
here is my code:
Page 1:
Code: Select all
<?PHP
session_start();
$name = "John";
$_SESSION["name"] = $name;
print("Please Visite <a href=\"./mysession.php\">This</a> Link.");
?>Code: Select all
<?PHP
echo $_SESSION["name"];
?>whats the Problem?
Burrito: Please use php tags when Posting Code In The Forums