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

From: Date: Sun, 11 Aug 2002 20:35:15 +0000
Subject: #18860 [Opn]: 4.2.2 breaks if/else statements
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16512@lists.php.net to get a copy of this message
ID: 18860 User updated by: nmk@iki.fi Reported By: nmk@iki.fi Status: Open Bug Type: Variables related Operating System: Solaris 8 PHP Version: 4.2.2 New Comment: 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 } ?> Previous Comments: ------------------------------------------------------------------------ [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 (#16512) next »