rhostager
|
Posted: 01/03/2002, 5:40 PM |
|
I read the article posted on this subject (code examples in ASP).
How do you do this in PHP?
Thanks,
Rob
|
|
|
Alex Alexapolsky
|
Posted: 01/04/2002, 2:30 AM |
|
Just duplicate ASP code , it's self explanatory.
The functionality is exactly the same , response.redirect == header ("Location : some url") , response.write == echo
|
|
|
rhostager
|
Posted: 01/05/2002, 9:32 AM |
|
I still had some problems with this but... finally got it to work with php. Here is the code that worked on the Open event of my "redirect" page:
if (get_session("UserRights") == 1)
header("Location: home1.php");
else if (get_session("UserRights") == 2)
header("Location: home2.php");
else if (get_session("UserRights") == 3)
header("Location: home3.php");
else
header("Location: login.php");
Hope this helps someone else,
- Rob
|
|
|
|