Did you register de variable?
look for session_register() in the manual.
You can see this articles too:
http://www.phpbuilder.com/columns/mattias2312.php3
http://www.phpbuilder.com/columns/mattias2105.php3
William.
El mar, 26-02-2002 a las 23:36, Dave escribió:
> login.htm
> f
e problem
>is not the middle page being html.
>Subject: [PHP] Sessions and switching between php and htm documents
>
>
>login.htm
> form submits information
>
>login.php
> session_start();
> $HTTP_SESSION_VARS["username"]=$formUs
bject: RE: [PHP] Sessions and switching between php and htm documents
Did you test and make sure the variable is set?
login.php
session_start();
$HTTP_SESSION_VARS["username"]=$formUserName;
echo $HTTP_SESSION_VARS["username"]
header("Loca
D]]
Sent: Tuesday, February 26, 2002 10:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Sessions and switching between php and htm documents
login.htm
form submits information
login.php
session_start();
$HTTP_SESSION_VARS["username"]=$formUserName;
header("
login.htm
form submits information
login.php
session_start();
$HTTP_SESSION_VARS["username"]=$formUserName;
header("Location: displaypage.htm");
displaypage.htm
show some static stuff
links to formpage.htm
formpage.htm
form submits informa
5 matches
Mail list logo