Login screen redirection (HTML5 / PHP) [closed]

-2

How do I redirect the login screen where there are 3 types of user:

1-Admin 2-Employee 3-Customer

And each will be redirected to different pages.

    
asked by anonymous 22.08.2016 / 03:58

1 answer

0

You can use the PHP header

if($tipoUsuario=='admin'){
    header('Location: url/do/admin.php');
}else if($tipoUsuario=='usuario'){
    header('Location: url/do/usuario.php');
}else if($tipoUsuario=='cliente'){
    header('Location: url/do/cliente.php');
}

Is this what you need?

    
22.08.2016 / 12:47