Global Variables
Posted: Fri Oct 10, 2008 11:06 am
I would like to store information in a golbal php variable that can be accessed by a new web page when a link is clicked.
I am developing a web site that will have 3 different types of users. On my home page, I have three navigational links, that, when clicked takes the member to a specific home page for that type of user. From this page, the user can log in, or register as a new user. If they are registering as a new user, the link opens a registration form which is used for all three types. I would like to be able to use a php function to store the user type in a global varibale that will then be used by a php function to set the type of user when creating the mySql record.
Thanks
I am developing a web site that will have 3 different types of users. On my home page, I have three navigational links, that, when clicked takes the member to a specific home page for that type of user. From this page, the user can log in, or register as a new user. If they are registering as a new user, the link opens a registration form which is used for all three types. I would like to be able to use a php function to store the user type in a global varibale that will then be used by a php function to set the type of user when creating the mySql record.
Thanks