I have written some code with the following setup.
menu.html is a pure html code with the following code for reference:
<form action="menu.php" method="post">
<input name="username" type="text">
<input type="submit" value="Press Here">
</form>
==============
menu.php is only php script containing the following:
<?php
session_start();
session_register("username");
$_SESSION[$username] = $username;
echo "<SCRIPT>self.location.href='bill.html'</SCRIPT>";
?>
===============
bill.html is code to prompt for other information....not really inportant to my problem.
<form action="bill.php" method="post">
<input name="entrees" type="text">
<input type="submit" value="Press Here">
</form>
===============
bill.php contains the following
<?php
echo $_SESSION['$username']";
?>
=======
Okay.... here is the problem.....the value of $username does not get passed to the bill.php code. I can not determine why this variable is not passing as anticipated.
I hope someone can help.
Thanks