Cita:
Iniciado por mauricio_grandon
entonces este codigo esta bn?
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;
}