From: devon at 16oranges dot com Operating system: WinXP PHP version: 5.0.4 PHP Bug Type: Scripting Engine problem Bug description: isset() doesn't work with a form submission
Description: ------------ Attempting to use isset() to find out when a user's submitted a form, and if they have, then I give them particular output. This works on Linux using old PHP 4.x, but I don't have access to that anymore. This doesn't work on WinXP (with SP2, if that matters). I suspect this is related to bug #29883 @ http://bugs.php.net/bug.php?id=29883 (which is supposed to be fixed), because I tested for it and it comes out with the unexpected result. I'm 110% baffled. - Devon Reproduce code: --------------- I'm using PHP 5.0.4 on WinXP (with SP2 if that matters at <form method="get" action="this_file.php"> <input type="submit" value="ad" name="adicion" id="adicion" /> </form> <?php if(isset($adicion)) { echo "expected result after form is submitted."; } else { echo "Only seen before form is submitted."; } ?> Expected result: ---------------- expected result after form is submitted. Actual result: -------------- Only seen before form is submitted. -- Edit bug report at http://bugs.php.net/?id=33485&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33485&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33485&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33485&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33485&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33485&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33485&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33485&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33485&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33485&r=support Expected behavior: http://bugs.php.net/fix.php?id=33485&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33485&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33485&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33485&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33485&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33485&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33485&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33485&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33485&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33485&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33485&r=mysqlcfg