-2
How do I redirect the login screen where there will be 3 types of user:
1-Admin 2-Employee 3-Client
And each one will be redirected to different pages.
-2
How do I redirect the login screen where there will be 3 types of user:
1-Admin 2-Employee 3-Client
And each one will be redirected to different pages.
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');
}
That’s what you need?
That’s right Neuber Oliveira, thank you very much.
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
assign a hidden field, for example: cod_type_user. So when you send the POST, the file will make an IF or a switch.... and depending on the result, already send to the correct page
– Israel Zebulon
I didn’t quite understand what you want to do, you could edit the question and add more detail of the problem to it?
– gato
Make a tour tbm to learn how the site works.
– gato
Your question is too wide. See if anything here helps: http://answall.com/search?q=qredirection+php+is%3Aquestion - I suggest a read on [Ask], and then a click on [Edit] to explain your problem better, based on the guidelines.
– Bacco