OK, here is my problem. The session variable sticks the first time I enter it, but if I try and update it, it doesn't change. Stays as the original.
Any suggestions are appreciated. BTW I'm using MS Access via odbc. Tried switching form mode from POST to GET, no change 🙁
Code:
Login.htm
<?php
/ login.htm /
session_unset();
session_destroy();
session_start();
session_register("username"); //register the variable
session_register("password");
echo (" <h6> Welcome $username ! </h6> ");
?>
<FORM ACTION = "admin_start_page.htm" METHOD = "post">
<h6> enter name </h6> <INPUT TYPE = "text" NAME = "username" >
<h6> enter password </h6> <INPUT TYPE = "password" NAME = "password" >
<INPUT TYPE = "submit" VALUE ="logon >>> " >
<P>
</FORM>
admin_start_page.htm (page 2)
<?php
session_start();
echo (" <h6> Welcome $username ! </h6> ");
etc..........