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,





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to