0
header('Location: leticia.php?id=1' .$usuario);
header('Location: barbara.php?id=2' .$usuario);
I am trying to redirect 2 logged in users, each one to your page using the code above, but when logged in, redirects the 2 to the same page that is leticia.php
, how to correct?
Maybe making a
if
checking which user is logged in?– Woss
I haven’t tried yet! I could write the code ?
– Diego Fernando
Is there a different way to redirect ?
– Diego Fernando
No, you understand what the HTTP header is
Location
? If not, it would be good to research on to understand how it works.– Woss
I’ll do a search. I could help with the code above?
– Diego Fernando
Recommend redirecting with javascript window.Location = "arbara.php? id=2<? php echo $usuario; ? >"; sending cabling before html (DOCTYPE etc) would be the right way http://php.net/manual/en/function.header.php
– Samuel Ives