docpepper
06-25-2007, 06:45 AM
Hi,
Ok I have created a simple interface login system for my clients to view there files under a secure section of my website. I have got connection to the database and set up a DB and Table which inludes IDs, Username and Password fields.
What i am struggling with is setting my page up so once a user has logged in it takes them through to a specific area of the website that is unique to them.
so for example.
File structure:
index.php > login_success.php > link to user1/index.php
my index.php page has the login form on it. Once logged in correctly it goes to login_success.php and says Welcome $myusername blah blah blah...follow this link to view your homepage.
How can I link the html path on the link button to match the user? eg user 1s path on the link would = user1/index.php,
user 2s path on the link would = user2/index.php.
Hope this makes sense! If anyone cud help that would be great! I can link my code etc if it will help...
Ok I have created a simple interface login system for my clients to view there files under a secure section of my website. I have got connection to the database and set up a DB and Table which inludes IDs, Username and Password fields.
What i am struggling with is setting my page up so once a user has logged in it takes them through to a specific area of the website that is unique to them.
so for example.
File structure:
index.php > login_success.php > link to user1/index.php
my index.php page has the login form on it. Once logged in correctly it goes to login_success.php and says Welcome $myusername blah blah blah...follow this link to view your homepage.
How can I link the html path on the link button to match the user? eg user 1s path on the link would = user1/index.php,
user 2s path on the link would = user2/index.php.
Hope this makes sense! If anyone cud help that would be great! I can link my code etc if it will help...