purplemonkeyuk Posted July 18, 2013 Share Posted July 18, 2013 First off I'm new to php still learning and reading as much as I can. The question is in lamen terms how do you insert dynamic content onto a user profile page based on their username. For instance I have a list of search results, each result is displayed is a unique user summary box. A member can click on a users summary box to take them through to that individuals profile page. When you click user number 1's link how can you carry forward user 1's unique ID so that user number 1's content is then displayed on their full profile page? I know it will be simple but I've hunted on google and in books, without knowing the functions to search I'm hitting lots of dead ends Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted July 18, 2013 Share Posted July 18, 2013 //search_results.php echo '<a href="profile?id=1">Click for User 1 Profile</a>'; //profile.php $id = $_GET['id']; //do something with $id to retrieve user's info At its simplest. Lots of checks to do etc... Quote Link to comment Share on other sites More sharing options...
purplemonkeyuk Posted July 18, 2013 Author Share Posted July 18, 2013 ok let me investigate further and I'm sure i will uncover more questions. You're a star thank you for getting back to me and dealing with what must seem like a very basic question! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.