Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/06/2011, 20:31
mauricio_grandon
 
Fecha de Ingreso: junio-2011
Mensajes: 10
Antigüedad: 13 años, 8 meses
Puntos: 0
Respuesta: Dudas Con Sesiones

Cita:
Iniciado por luis_green Ver Mensaje
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!!!