easypeasy
07-16-2009, 06:00 PM
Hello fellow coders,
I'm new to Javascript and PHP and stuff like that, but I have experience programming in HTML, C++, and VB.
What I'm trying to do:
I'm creating a login system and have the following requirement. When the user is logged in, I want the their account information displayed at all times at the top of every page. When the user is logged out, I want the login boxes displayed in that same spot on all pages.
My Questions:
1) How can I create a Global Flag Variable that spans across multiple pages (sessions??)
2) Next step is I need to be able to embed HTML code into an if statement that checks this Global Flag variable when the page is opened. e.g. If flag = true, then x.html should look one way, if flag = false, then x.html should look another way.
Thanks for your help!!!
I'm new to Javascript and PHP and stuff like that, but I have experience programming in HTML, C++, and VB.
What I'm trying to do:
I'm creating a login system and have the following requirement. When the user is logged in, I want the their account information displayed at all times at the top of every page. When the user is logged out, I want the login boxes displayed in that same spot on all pages.
My Questions:
1) How can I create a Global Flag Variable that spans across multiple pages (sessions??)
2) Next step is I need to be able to embed HTML code into an if statement that checks this Global Flag variable when the page is opened. e.g. If flag = true, then x.html should look one way, if flag = false, then x.html should look another way.
Thanks for your help!!!