Jump to content


Levels of start pages. after login

  • Please log in to reply
1 reply to this topic

#1 webtrix

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 12 February 2004 - 10:43 PM

Hi I hope someone can help me here.

I have made a database with all the information i can and will gather, and in this database i have sorted people in to groups such as friends, family, newcommers
and members.

What I want is that when people type their login and password they are sent to different pages, sorting them after is they are marked as friends, family and so one.

One starting page for friends, another for family and so on.

I really hope someone can help me..


#2 holiks

  • Members
  • PipPipPip
  • Advanced Member
  • 83 posts

Posted 12 February 2004 - 11:17 PM

1 - show login form
2 - authenticate user against database (draw group details based on user/pass combo)
3 - now you know that he is a member/friend/family/whatever then use something like a header() redirect ...or includes() within switch()

$group = mysql_result(mysql_query("SELECT group_name FROM tbl_users WHERE username='$name_input' and password='$pass_input'")) or die(mysql_error());
   case 'family': /*include family page*/ ;
   case 'friend': /*include friend page*/ ;
   case 'member': /*include member page*/ ;

..untested...jst a guide
__________________________________________________________[br]$php = array('..a stack', '...once you pop', '...you don't stop');

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users