![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/11/2009, 14:03
|
| | Fecha de Ingreso: septiembre-2009
Mensajes: 215
Antigüedad: 15 años, 4 meses Puntos: 1 | |
Respuesta: que cambie el css al estar logueado Podrías una función que te escriba la cabecera y en función de si el usuario está logueado o no pues te escriba un fichero css u otro.Algo así:
function mostrarHead($logueado) {
if ($logueado == "si") {
echo '
<head>
<title> Usuario logueado </title>
<meta http-equiv = "Content-Type" content = "text/html;charset= utf-8" />
<link rel = "stylesheet" type = "text/css" href = "rutaEstilosLogueado" />
</head>';
}
else {
echo '
<head>
<title> Usuario no logueado </title>
<meta http-equiv = "Content-Type" content = "text/html;charset= utf-8" />
<link rel = "stylesheet" type = "text/css" href = "tutaEstilosNoLogueado" />
</head>';
} |