Question on GLOBALS (yes, I read the sticky)
Posted: Fri Feb 07, 2003 11:58 am
Hi there,
I read the sticky, and am aware of the GLOBALS being turned off now by default. However, does this affect FORM variables that we don't reference using the GLOBALS array?
For example:
FORM
INPUT TYPE="text" NAME="email"
blah blah blah
/FORM
In my future PHP scripts, will the following still work with the register globals turned off? :
function PrintAddr() {
global $email;
echo ("Your email address was: " . $email);
}
Thanks!
I read the sticky, and am aware of the GLOBALS being turned off now by default. However, does this affect FORM variables that we don't reference using the GLOBALS array?
For example:
FORM
INPUT TYPE="text" NAME="email"
blah blah blah
/FORM
In my future PHP scripts, will the following still work with the register globals turned off? :
function PrintAddr() {
global $email;
echo ("Your email address was: " . $email);
}
Thanks!