Session variable problem
| From: | Christian Ista | Date: | Tue, 13 Aug 2002 11:09:45 +0000 |
| Subject: | Session variable problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-112298@lists.php.net to get a copy of this message | ||
Hello,
I'd like to use session variable.
I do that (see below) but I receive an error. Other question, how can I do
to know if a session variable is already defined ?
<?php session_start()?>
<?php$_SESSION["LG"] = 'EN';?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><title>
</head>
<body>
</body>
</html>
But I receive this error :
Parse error: parse error, unexpected T_VARIABLE in
d:\inetpub\wwwroot\test\index.php on line 2
thanks,
Christian,