so tell me hobo, if globals doesn't make a difference than why for the post
explain that to me??? hence you can't you $_POST on a site that globals are on.... sometimes it works sometimes it doesn't.ok, my local system doesn't have register_globals on, but my web host does.. is there any simple line of code that i can put at the top of my config scripts that will turn it off? it's making an entire website of mine not work correctly
but to fix the problem you could do soemthing like this
will allow you to use the regular variables if you don't want to replace your code. you can do the same for cookies too I believe.PHP Code:foreach ($HTTP_POST_VARS as $key => $val) {
$$key = $val;
}
OR
foreach ($HTTP_POST_VARS as $key => $val) {
$_POST['$key'] = $val;
}




Reply With Quote