•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 374,181 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,403 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 180 | Replies: 1
![]() |
•
•
Join Date: Jul 2007
Posts: 15
Reputation:
Rep Power: 0
Solved Threads: 1
iam designing a login page..while validating the login ..i have to check whether the user is ordinary user or administrator...i have to display different page for each one..i did the validation process..but how to switch to administrator.php say if the user is an administrator..can i use <form> for this..
•
•
Join Date: Oct 2005
Location: Harare, Zimbabwe
Posts: 33
Reputation:
Rep Power: 3
Solved Threads: 2
try to use page redirection to the required page after user validation
You can try this code
You can try this code
if ($user="admin")
{
header('Location: admin.php');
}
else
{
header('Location: ordinary_user.php');
}
If you find this useful you can add to my reputation
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- Murphy's Laws (Geeks' Lounge)
- Need urgent help. Problem with SQL and win server. (Windows NT / 2000 / XP / 2003)
- The 10 Minute Linux Firewall (Linux Tutorials)
- How to free resources for other processes (VB.NET)
- IIS .NET2 virtual directory not working (ASP.NET)
- The programming learning curve: (Geeks' Lounge)
- Virus Of Death - Help Needed! (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: Getting Radio Buttons to access Mysql Database
- Next Thread: Dynamic Declaration of Arrays Keys


Linear Mode