Hi. I'm new to this board and basically im learning to use the sessions of php.
For some reason i can't get session variables to carry over to the next page. I plan on using this feature for a website which i have already began creating and am 70% done with.
Any help or pointers in the right direction would be greatly appreciated, as I have stared , tinkered and messed with this code for nearly two weeks with no results. Thanks in advance.
(page 1)
<?php
session_start();
$_session[name]="Megaman";
?>
<html>
<head>
<title>
testing sessions
</title>
</head>
<body>
<?php
echo "$_session[name]<br>";
echo "<form action='sessiontest2.php' method='post'>
<input type='hidden' name='name' value='$_session[name]'>
<input type='submit' value='go to the next page'>
</form>";
?>
</html>
<page 2)
<?php
session_start();
?>
<html>
<head>
<title>
testing sessions 2
</title>
</head>
<body>
<?php
echo "$_post[name]<br>";
?>
</body>
</html>