Cita:
Iniciado por luis_green
Si.. pero este estaría mas mantenible:
Código PHP:
switch($rol)
{
case 1:
header(" location: 1.html");
break;
case 2:
header(" location: 2.html");
break;
case n:
header(" location: n.html");
break;
default:
header(" location: sinpermisos.html");
break;
}
Muchas Gracias lo probare y les dire como me fue!!!