I coded a page salam.php this way
Code: Select all
<?php
echo "salam";
$t="taj";
$_SESSION['zesht']=$t;
?>
<br>
<?php
echo "$t";
?>
<br>
<a href="hamed.php">hamed</a>salam
taj
hamed (link to hamed.php)
then I coded hamed.php this way
Code: Select all
<?php
$r = $_SESSION['zesht'];
echo $r;
?>Notice: Undefined variable: _SESSION in g:\programs new\easyphp\www\mahmud\hamed.php on line 4
thanks