I have been through 2 different php books and I am yet to sucessfully set and read session variables...
can someone post a basic form that will set 3 session variables in one php form and read them in another php form?...Please
I Am using php Version 5.3.6:
This Will Print The Session Variable just fine in the SessionCookies.php
Code:
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?php
session_start();
$_SESSION['FirstName'] = "Jim";
echo ($_SESSION['FirstName']);
echo ($_SESSION['id']);
echo "WOW";
echo '<a href="SessionReader.php">VIEW </a>';
?>
</body>
</html>
But When I Click The View Link It Only Will display "What"
Code:
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?php
session_start();
echo ($_SESSION['FirstName']);
echo "What";
echo ($_SESSION['FirstName']);
?>
</body>
</html>