Hello again, The ISP that I'm using now has Register_globals turn OFF and I requested for them to be turned on. They can't but he send me the following code. Will this work? If so where do I put in in the code. Is there a better work around?
----------------------
Mike,
Register_globals is turned off for security reasons and cannot be
enabled. However, for scripts that need register_globals on, you can
add the following lines of code to emulate that functionality:
### register_globals = off ### +++
//HTTP_GET_VARS
while (list($key, $val) = @each($HTTP_GET_VARS)) {
$GLOBALS[$key] = $val;
}
//HTTP_POST_VARS
while (list($key, $val) = @each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
}
//HTTP_POST_FILES
while (list($key, $val) = @each($HTTP_POST_FILES)) {
$GLOBALS[$key] = $val;
}
//$HTTP_SESSION_VARS
while (list($key, $val) = @each($HTTP_SESSION_VARS)) {
$GLOBALS[$key] = $val;
}
### register_globals = off ### ---
-------
Thanks for your help again....
Mike


Reply With Quote
