Re: Where to insert a phrase in the right place
| From: | Mário Gamito | Date: | Mon, 09 Apr 2007 21:09:37 +0000 |
| Subject: | Re: Where to insert a phrase in the right place | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252365@lists.php.net to get a copy of this message | ||
Hi,
Jay Blanchard wrote:
> [snip]
> How can i make the word "Welcome" appear only after the login ?
> [/snip]
>
> If you set a cookie upon login you can then check for the existence of the cookie. If the
> cookie exists do not display 'Welcome'.
I have:
session_start();
session_register("email");
in the beginning of the file.
I've tried:
if (isset($_SESSION['email']))
print('Welcome ' . $name);
but obviously it prints the "Welcome" word as the same.
Any ideas ?
Thanks in advance.
Warm Regards
--
:wq! Mário Gamito