switching between forms

Reply

Join Date: Jul 2007
Posts: 15
Reputation: gopi kannan is an unknown quantity at this point 
Solved Threads: 1
gopi kannan gopi kannan is offline Offline
Newbie Poster

switching between forms

 
0
  #1
Feb 23rd, 2008
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..
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 36
Reputation: tirivamwe is an unknown quantity at this point 
Solved Threads: 2
tirivamwe's Avatar
tirivamwe tirivamwe is offline Offline
Light Poster

Re: switching between forms

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

You can try this code

  1.  
  2.  
  3.  
  4. if ($user="admin")
  5. {
  6. header('Location: admin.php');
  7. }
  8. else
  9. {
  10. header('Location: ordinary_user.php');
  11. }
If you find this useful you can add to my reputation
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum


Views: 503 | Replies: 1
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC