CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

  User redirection based on their Login Security

Print topic Send  topic

Author Message
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

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.