OK, I'm running into real problems now. can anyone help me out please? as I have a deadline (as I'm sure we all do!)
Anyway, I am trying to make use of sessions under PHP4. I have 3 files: 1.phtml, 2.phtml and 3.phtml (Code here).
When I place these on my web server and view them useing IE 5.5 there are no problems. However, if I use IE4, or Netscape on Windows or Linux the session variables assigned in 2.phtml do not show up in 3.phtml.
Help please. here's the files:
1.phtml
<HEAD>
<TITLE>
Test
</TITLE>
</HEAD>
<BODY>
<FORM NAME="frmName" METHOD="get" ACTION="2.phtml">
<INPUT TYPE="text" NAME="usrname">
<BR>
<INPUT TYPE="text" NAME="usrpassword">
<BR>
<INPUT TYPE="submit" NAME="btnSubmit">
</FORM>
</BODY>
2.phtml
<?
session_start();
if (!$usrname) {
header("Location: 1.phtml");
session_destroy();
exit();
}
$user = $usrname;
$pass = $usrpassword;
session_register("user");
session_register("pass");
?>
<HEAD>
<TITLE>
Test 2
</TITLE>
</HEAD>
<BODY>
<P>
Thanks, click <A HREF="3.phtml">here</A> to move on.
</BODY>
3.phtml
<?
session_start();
?>
<HEAD>
<TITLE>
Test 3
</TITLE>
</HEAD>
<BODY>
<P>
Username (user): <? echo($user) ?>
<P>
Password (pass): <? echo($pass) ?>
</BODY>