Page 1 of 1

Global Variable

Posted: Wed Mar 19, 2003 3:09 am
by desmondlk
Dear all,

How can define a variable as global in order for to pass it from page to page?

With this global variable, i can access it in each page that i visit.

If the hosting site already disable global variable (register_global),
how can i fix it in order to fit into my problem?

Please help. Thank in advance.

Posted: Wed Mar 19, 2003 3:32 am
by deejay
i think what your after is SESSIONS if your looking to carry values from page to page. take a look at this thread

viewtopic.php?t=6521

Posted: Wed Mar 19, 2003 3:24 pm
by bionicdonkey
you could also send the variable with the url e.g. index.php?var=value
then use $_GET['var'] to get the variable on the next page...but sessions would be better if the variable is for the whole site