Re: Where to insert a phrase in the right place
| From: | Mário Gamito | Date: | Mon, 09 Apr 2007 21:42:42 +0000 |
| Subject: | Re: Where to insert a phrase in the right place | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252372@lists.php.net to get a copy of this message | ||
Hi,
André Medeiros wrote:
> <?php
> session_start();
> if(!isset($_SESSION['greeted'])) {
> echo "Welcome";
> $_SESSION['greeted'] = 1;
> }
> ?>
It doesn't work :(
if ($_SESSION['greeted'] == 1)
print('Welcome ' . $name);
$_SESSION['greeted'] is always equal to 1 as set in the beginning of the
file.
http://www.telbit.pt/2/login.php
Warm Regards
--
:wq! Mário Gamito