Hello,
I’m having a real tough time with session variables.
The values don’t pass from one page to the next one.
Even with a very simple code like this one:
Page#1
[CODE]
<?php
session_start();
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<body>
<?php
$_SESSION[‘FName’]=”Jay”;
$_SESSION[‘LName’]=”Pay”;
echo “<a href=’session2.php’>Try now</a>”;
?>
</body>
</html>
Page#2:
[CODE]
<?php
session_start();
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<body>
<?php
echo “My name is “.$_SESSION[‘FName’]. ” “. $_SESSION[‘LName’] ;
?>
</body>
</html>
Thanks in advance for your commnets,
Laura