-
Global Variables
I want to create variables, all the pages on my website are able to read. I experimented with hanging all the variables behind the url (ex. http://myaddress.com/index.php?name=chris etc
anyway, this is working just fine on my computer with apache2, but the server I use (the online one) the same code isn't working at all.
i guess this function is disabled there. So is there another way to do the same thing?
maybe something like a module in vb??
Please Help
FES
-
Re: Global Variables
Hmm, I don't know why it wouldn't work on your other server, are you accessing name with $_GET['name']? Anyhow, I think Sessions will be able to help you out.
Good luck
-
Re: Global Variables
Most servers don't have register globals turned on. Therefore, you have to access the variables via the $_GET array.