mariovaldez.net http://www.mariovaldez.net/webapps/forums/ |
|
Display User on page http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=11&t=283 |
Page 1 of 1 |
Author: | Guest-Teh~ [ 23 Feb 2006, 14:42 ] |
Post subject: | Display User on page |
Is there anyway to say at the top of the page display the name they are logged in under? like :Logged In As "Teh~" i dont know how to do this myself |
Author: | mvaldez [ 26 Feb 2006, 02:34 ] |
Post subject: | How to display the username... |
Guest-Teh: > Is there anyway to say at the top > of the page display the name they > are logged in under? like : > Logged In As "Teh~" Hi. Yes, you can do it! Just add this to the webpage, in the place you want to display it: Code: <?php echo "Logged in as $slogin_Username"; ?> So, for example, if you have a header file (like header.inc.php) you could add it there too. For example: Code: <html>
<head> <title><?php echo $slogin_pagetitle;?></title> </head> <body> <p><?php echo "Welcome $slogin_Username"; ?></p> And then all pages would display the "Welcome xxxxx" message. Regards, Mario A. Valdez-Ramirez. |
Author: | Guest [ 15 Jan 2007, 07:18 ] |
Post subject: | similar problem |
I would like to have Welcome Guest' displayed on the page, but whent he user logs in, the word guest is replaced by their login name. I've got it working perfectly for displaying the users name after login, but this would just add the finishing touch! Any help would be much appreciated! It a totally awsome script! |
Page 1 of 1 | All times are UTC - 7 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |