From: Operating system: Ubuntu 10.04 PHP version: Irrelevant Package: HTTP related Bug Type: Bug Bug description:multiple $_POST array values not being assigned correctly
Description: ------------ The value of a $_POST array item is not being assigned properly Test script: --------------- <form method="post"> <input type="submit" name="step4[edit][change]" value="Submit and continue"> <input type="submit" name="step4[edit]" value="Continue without changes"> </form> <? //After form submission var_dump($_POST['step4']['edit']['change']); ?> Expected result: ---------------- //When "Continue without changes" is pressed, expected value: NULL Actual result: -------------- //When "Continue without changes" is pressed... //Actual value: string(1) "C" //The "C" is taken from the first character of the value of $_POST['step4'] ['edit'] //A var_dump of $_POST['step4']['edit'] returns the value as expected as does a var_dump of $_POST['step4']['edit']['change'] when that is actually pressed. -- Edit bug report at http://bugs.php.net/bug.php?id=52548&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52548&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52548&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52548&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52548&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52548&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52548&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52548&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52548&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52548&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52548&r=support Expected behavior: http://bugs.php.net/fix.php?id=52548&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52548&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52548&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52548&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52548&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52548&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52548&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52548&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52548&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52548&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52548&r=mysqlcfg