Hi,i have a litle problem and i cant resolve it.
Demo:
function webhead($uthm,$pgtitle)
{
$ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" >";
$ret .= "<head>";
$ret .= "<title>$pgtitle</title>";
$ret .= "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"images/favicon.ico\" />";
$ret .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"default.css\" />"; //Default css theme
$ret .= "</head><body>";
return $ret;
}
/////
and i try something like this:
function webhead($uthm,$pgtitle)
{
$ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" >";
$ret .= "<head>";
$ret .= "<title>$pgtitle</title>";
$ret .= "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"images/favicon.ico\" />";
if($getuthm!="")
{
$ret .= "<style type=\"text/css\">
body
{
background-color: #0000ff
font-family: Georgia;
color: #000000
}
</style>"; //theme for registered users,after login
}else{
$ret .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"default.css\" />"; //theme for non-registered users,not login
}
$ret .= "</head><body>";
return $ret;
}
////////////////////
It not working and i dont know why,maybe i make the code wrong or what,anybody some ideas,coding?
Demo:
function webhead($uthm,$pgtitle)
{
$ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" >";
$ret .= "<head>";
$ret .= "<title>$pgtitle</title>";
$ret .= "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"images/favicon.ico\" />";
$ret .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"default.css\" />"; //Default css theme
$ret .= "</head><body>";
return $ret;
}
/////
and i try something like this:
function webhead($uthm,$pgtitle)
{
$ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" >";
$ret .= "<head>";
$ret .= "<title>$pgtitle</title>";
$ret .= "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"images/favicon.ico\" />";
if($getuthm!="")
{
$ret .= "<style type=\"text/css\">
body
{
background-color: #0000ff
font-family: Georgia;
color: #000000
}
</style>"; //theme for registered users,after login
}else{
$ret .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"default.css\" />"; //theme for non-registered users,not login
}
$ret .= "</head><body>";
return $ret;
}
////////////////////
It not working and i dont know why,maybe i make the code wrong or what,anybody some ideas,coding?
Comment