Page 1 of 1
$mode and $HTTP_GET_VARS['mode']
Posted: Thu Jun 23, 2005 8:08 pm
by Mr Tech
Let say that I link to a page like this:
http://www.domain.com/page.php?mode=test
If I had this code on the page it would be displayed blank:
If I had this on the page it would display "test":
Code: Select all
<?php
echo HTTP_GET_VARS['mode']
?>
What would I need to turn on to allow the first example ($mode) to work? I can't remember the term for this.
Posted: Thu Jun 23, 2005 8:19 pm
by John Cartwright
extract()
By the way, its not HTTP_GET_VARS anymore, just $_GET['mode'].
Posted: Thu Jun 23, 2005 8:22 pm
by dethron
global_variables = On
Posted: Thu Jun 23, 2005 8:32 pm
by John Cartwright
I'm sure having a thick day. But yea keep register globals Off at all costs.
Even the use of extract to mimic register globals, when used improperly can lead to some serious problem.
please read the documentation found at
http://php.net/register_globals
Posted: Thu Jun 23, 2005 8:54 pm
by dethron
The guy is asking for terminology, i am not

Posted: Fri Jun 24, 2005 6:16 am
by Chris Corbyn
~dethron your avatar scares me a little can you change it please?

Posted: Fri Jun 24, 2005 9:17 am
by dethron
sorry dude, i am using this avatar in devnetwork for more than 2 years. I set it to this one when jason (lotito) changed my nick by my request

thnx jason.
Posted: Fri Jun 24, 2005 9:18 am
by Chris Corbyn
heh... I was only messin' with you
