#18860 [Opn->Bgs]: 4.2.2 breaks if/else statements

From: Date: Sun, 11 Aug 2002 20:41:49 +0000
Subject: #18860 [Opn->Bgs]: 4.2.2 breaks if/else statements
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16513@lists.php.net to get a copy of this message
ID: 18860 Updated by: rodif_bl@php.net Reported By: nmk@iki.fi -Status: Open +Status: Bogus Bug Type: Variables related Operating System: Solaris 8 PHP Version: 4.2.2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-08-11 16:35:14] nmk@iki.fi I had a simple script that is useless after I installed php-4.2.2. Before I was using 4.1.0 and it worked fine. It seems that in the php-4.2.2 it doesn't, for some odd reason, understand the posted $submit variable in the if-statement. Any ideas? - Niko -- SCRIPT STARTS -- <?php if($submit) { echo $tellme; } else { ?> <h1>Tell me!</h1> <form method="post" action="this-script.php"> <textarea name="tellme"></textarea> <input type="Submit" name="submit" value="Tell it!"> </form> <?php } ?> ------------------------------------------------------------------------ [2002-08-11 16:31:53] nmk@iki.fi I had a simple script that is useless after I installed php-4.2.2. Before I was using 4.1.0 and it worked fine. It seems that in the php-4.2.2 it doesn't, for some odd reason, understand the posted $submit variable in the if-statement. Any ideas? - Niko -- SCRIPT STARTS -- <?php if($submit) { echo $tellme; } else { ?> <h1>Tell me!</h1> <form method="post" action="this-script.php"> <textarea name="tellme"></textarea> <input type="Submit" name="submit" value="Tell it!"> </form> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18860&edit=1

« previous php.bugs (#16513) next »