#18860 [NEW]: 4.2.2 breaks if/else statements
| From: | nmk at iki dot fi | Date: | Sun, 11 Aug 2002 20:31:54 +0000 |
| Subject: | #18860 [NEW]: 4.2.2 breaks if/else statements | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-16511@lists.php.net to get a copy of this message | ||
From: nmk@iki.fi
Operating system: Solaris 8
PHP version: 4.2.2
PHP Bug Type: Variables related
Bug description: 4.2.2 breaks if/else statements
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 bug report at http://bugs.php.net/?id=18860&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18860&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18860&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18860&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18860&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18860&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18860&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18860&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18860&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18860&r=globals