Jump to content


PHP Client Area


1 reply to this topic

#1 Scion

    Young Padawan

  • Members
  • Pip
  • 25 posts
  • Gender:Male
  • Interests:Basketball, baseball, volleyball, web design, graphic design, reading, watching movies.

Posted 07 July 2007 - 10:26 PM

Hi,

I want to make a client login area for my website. I want it to redirect to a specific page depending on who the client is. I'd like to code this in PHP, so how would I go about doing that?

#2 MetalSkin

    Young Padawan

  • Members
  • Pip
  • 196 posts
  • Gender:Male
  • Location:Brisbane, Australia

Posted 07 July 2007 - 11:08 PM

that would be very easy. One of two ways but both ways would be based on your configuration of data. Either you have some form of classification of each user (e.g. into a user group) and the classification records which page they go to when they log in, or you have it configured based on the user account, so the actual user info would hold which page they go to.

Most prob you would have a separate table to define the locations they can go to and then either the classification table or user table would have a foreign key to the locations table.

When they log in i imagine a simple redirect would work.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users