View Single Post
Light Poster
9Apr2010,09:28  
silversurface's Avatar
Quote:
Basically creating a website for our comp dept in college..
Now consider a scenario : when a teacher or student logs in and is viewing someone else's blog ..when he clicks on the creator of the blog "which s a hyperlink" he should jump to the profile page of that user..How to do this?

Problem: Should i use session variables for this? I have created two session variables which are created at the time of login for the current user called email[this is unique] and usertype [teacher/student]

Suggested solution: Somehow i need to find a way to retrieve the text[email] printed within the anchor tag and make a search through the database to find a match with email of any user registered so that their profile can be displayed.

Anyone has any idea?