I have a student database system and I am currently adding a simple discussion forum into it. I have no problem to add a link which connected to the forum, but having difficulty to link the forum back to the home page. The system flow is like this; Users login their account and there will be the home page which showing the main menu and their basic info. From the main menu, there is a tab for the forum. At this stage, there is no problem occur. Problem occurred when I redirecting the forum to the home page, it is an empty page which is not the original home page.

No, what I mean is that once the student has logged in, it's not a good idea to pass the student id around from one page to another in the query string, because it means a lot of work. You'll have to add it to the query string of each and every link in your site (which is what is missing in the link back to the main page).If you save it in a session variable, you'll always have it ready for use on each page.

If you need help with sessions, you can start by studying the manual, or by googling for a tutorial. And of course, you can ask any questions here if you can't get it to work.

P.S. the part in red is called the query string:

test.php[B]<font color='"#FF0000"'>?student_id=12345</font>[/B]

Php_Beginner
—
2012-02-09T08:56:10Z —
#5

I still couldn't get my forum page redirect back to my original logged in user home page.