Anon
10-26-2000, 05:02 PM
I installed PHP4 on Windows 2000, everythings works fine except for url arguments, they are entirely invisible for php, e.g. $foo is null in mypage.php if I call mypage.php?foo=something, can anybody help??
|
Click to See Complete Forum and Search --> : URL Arguments Missing Anon 10-26-2000, 05:02 PM I installed PHP4 on Windows 2000, everythings works fine except for url arguments, they are entirely invisible for php, e.g. $foo is null in mypage.php if I call mypage.php?foo=something, can anybody help?? Anon 10-26-2000, 08:27 PM Make sure register_globals is set to On in your php.ini file. Another way to check for this is to try accessing the variable through the $HTTP_GET_VARS array like print $HTTP_GET_VARS["variablename"] Anon 10-27-2000, 10:24 AM Thanks Louie it worked! I didn't change php.ini but used $HTTP_GET_VARS[] instead to keep my scripts compatible with PHP4 in case my host upgrades to 4. Thanks again. PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved. |