Could some one help me to solve this problem. How could I pass the session variable from one page to another (not use as form variables)
below is my two short programs that I wrote. I can't print the variable on the second page.
-----first phtml page ------
<?
session_start();
$temp = "word1";
// session_register($temp);
?>
<HEAD>
</HEAD>
<BODY>
this is testing page 1 <BR>
my temp variable is <BR>
<? echo $temp ?>
<B> <BR>
Clik here to <A HREF="testing2.phtml">second</A> page
<BR>
</BODY>
---- second phtml page ---
<?
session_start();
?>
<head>
<title>Untitled</title>
</head>
<body>
This is second testing page and passing varaible from the previous page is <B>
<? echo $temp ?>
</B> <BR>
</body>
Your help are very appreciated.