faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

12 of 20 people (60%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

how can i display different logos depending on the login after a user has logged on???

Mar 15th, 2008 18:05
ha mo, Dave, zurin moses,


if($login=="john")
{
echo "<img src=\"john.jpg\">";
}
elseif($login=="judy")
{
echo "<img src=\"judy.jpg\">";
}
If you use .htaccess for authentication paste this line before the code 
and make sure safe_mode is turned off.
$PHP_AUTH_USER = $login;
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.mozmar.com
http://www.yamot.com
http://www.templatestemp.com