View Full Version : Carrying Variables
mburt
10-20-2006, 05:26 PM
On my login page (http://mburt.mb.funpic.org/login_page.php > login with username "user" and password "test") I want to carry the variable: ?user=user from page to page. I can get it to carry over to the index.php, which in the address bar will appear index.php?user=(username here), but then when you go to another page, it's gone. How can I carry this variable over from page to page?
Use a session (http://www.php.net/features.sessions).
djr33
10-20-2006, 07:51 PM
Doing it manually is also possible, but this would require manually adding it to each link (via php, but typing that in for each a tag), and adding a hidden value to all forms, as well as working out a solution for any other links/etc.
So.... use sessions.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.