User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 401,969 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 2,858 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

switching between forms

Join Date: Oct 2005
Location: Harare, Zimbabwe
Posts: 33
Reputation: tirivamwe is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
tirivamwe's Avatar
tirivamwe tirivamwe is offline Offline
Light Poster

Re: switching between forms

  #2  
Feb 23rd, 2008
try to use page redirection to the required page after user validation

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
Reply With Quote  
All times are GMT -4. The time now is 6:47 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC