Re: Where to insert a phrase in the right place

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux