Jump to content

Recommended Posts

I recently purchased a php contact script from codecanyon.net. I am new to php but I understand somewhat because I am well rounded in php. Basically I have the script integrated completely to my website and have setup everything correctly through MySQL and ext. What I want to happen is when the user goes to the login page they enter their username and password and then they get redirected to their own personal page, kindof like online banking and ext. It is for my clients to see updates on projects and important files that need to be downloaded. I am somewhat confused how to accomplish this. I tried one method in which I would change the users level.

 

This is on top of the login page:

<?php include('check.php'); check_login('1'); ?>
<?php include('header.php'); ?>

 

I thought if I changed check_login to the user level lets say 5 then only they would be able to log in to that page. I didn't realize, until thinking about it, that user levels from 1 to 5 would be able to view that page and that user levels from 6+ could not view that page. So basically what I need help with is to figure out a way in which when a user logs in they will be redirected to their own personal page that others can not view.

 

Thanks,

 

Danny

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.