RJ Posted November 15, 2009 Share Posted November 15, 2009 i have a login script and after user loged in it goes to home page, or I can set up to go to profile page. What I would like to do is have a link on home page (just like this site here on homepage) so user can go to there profile page, and make any edits they want, what do I have to put in the profile link so it will only be to go to there own profle page, I would need the script, thx Link to comment https://forums.phpfreaks.com/topic/181607-adding-a-feature-to-a-login-script/ Share on other sites More sharing options...
smerny Posted November 15, 2009 Share Posted November 15, 2009 If you are using sessions for the ID of the user who wants to view his profile? something like: echo "<a href='profile.php?id=".$SESSION['id']."'>View Your Profile</a>"; Link to comment https://forums.phpfreaks.com/topic/181607-adding-a-feature-to-a-login-script/#findComment-957923 Share on other sites More sharing options...
smerny Posted November 15, 2009 Share Posted November 15, 2009 then obviously the profile page would show a profile (pull data from the database) based on the value of $_GET['id'] Link to comment https://forums.phpfreaks.com/topic/181607-adding-a-feature-to-a-login-script/#findComment-957925 Share on other sites More sharing options...
RJ Posted November 15, 2009 Author Share Posted November 15, 2009 thx will give it a try, if i run in any problems I will post back, thx again Link to comment https://forums.phpfreaks.com/topic/181607-adding-a-feature-to-a-login-script/#findComment-958038 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.