[thelist] Basic PHP question about: 'Notice: Undefined variable'
misterhaan
misterhaan at track7.org
Thu Aug 10 14:13:38 CDT 2006
Chris Dempsey wrote:
> Notice: Undefined variable: PHP_SELF in e:\Websites\xxxx\admin\login.php on
> line 12
>
Chances are if you fix just this error by replacing $PHP_SELF with
$_SERVER['PHP_SELF'] there will still be other errors like where the
programmer used $password instead of $_POST['password']. This is not to
say you should turn register_globals on, just that it's likely that the
entire thing was written assuming register_globals was on, so there's
probably more to fix.
More information about the thelist
mailing list