Bug #17215 Updated: "else if" (maybe also "else") function bug

From: Date: Tue, 14 May 2002 20:19:45 +0000
Subject: Bug #17215 Updated: "else if" (maybe also "else") function bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7668@lists.php.net to get a copy of this message
ID: 17215 Updated by: derick@php.net Reported By: genius@pai.net.pl -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Slackware 8.0 PHP Version: 4.2.1 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-05-14 16:17:26] genius@pai.net.pl Hello SOURCE: http://dec.kan.pl/index.phps Look for the following: ---< cut >--- /** PRZETWORZENIE DANYCH I WYSY£KA **/ if ($prob_dzial == "" || $prob_name == "" || (...) { echo "Proszê wype³niæ (...) } else if ($send_status == "ok") { ---< cut >--- When using the PHP 4.1.x version, the supplied script worked perfectly fine. If the areas $prob_dzial, $prob_name etc. had had no value, the script returned "Proszê wype³niæ..." on the page, if the data had been submitted, the mail was thereafter sent. In the PHP 4.2.x version, the if () formula works perfectly fine, though after submiting the data to the formn and clicking on "WY¦LIJ" (submit), the else if () formula seems to be buggy. It doesn't send any e-mail, and returns the action that the if () formula does. I'm looking forward to reply from You ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17215&edit=1

« previous php.bugs (#7668) next »