Bug #17230 Updated: Variables not hitting script!!!

From: Date: Fri, 17 May 2002 16:35:42 +0000
Subject: Bug #17230 Updated: Variables not hitting script!!!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7942@lists.php.net to get a copy of this message
ID: 17230 Updated by: hubweb@hotmail.com Reported By: awgneo@xbetanet.com Status: Bogus Bug Type: Scripting Engine problem Operating System: RH Linux 7.2 PHP Version: 4.2.1 New Comment: Use $_GET["mod"] instead of $mod. If you request method is POST => $_POST["mod"]. Previous Comments: ------------------------------------------------------------------------ [2002-05-14 21:06:49] rasmus@php.net In PHP 4.2.0, the 'register_globals' setting default changed to be off. See http://www.php.net/release_4_2_0.php for more info. We are sorry about the inconvenience, but this change was a necessary part of our efforts to make PHP scripting more secure and portable. ------------------------------------------------------------------------ [2002-05-14 21:05:21] awgneo@xbetanet.com BIG PROBLEM!!! I have tried this on both 4.2.0 and 4.2.1 on both IIS 5.1 and Apache (Linux 7.3): if i define a variable using a url, example: module.php?mod=hello the variable $mod DOES NOT get set in a VERY simple script: <? echo $mod; ?> and give me an "Undefined Variable Error" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17230&edit=1

« previous php.bugs (#7942) next »