Bug #16513: array through http form

From: Date: Tue, 09 Apr 2002 13:16:09 +0000
Subject: Bug #16513: array through http form
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4426@lists.php.net to get a copy of this message
From: martijn@tiel.nu Operating system: windows xp / linux PHP version: 4.1.2 PHP Bug Type: Output Control Bug description: array through http form When passing an array through a form echo is running into trouble. example: <form action="array.php" method="post"> Name: <input type="text" name="personal[name]"><br> Email: <input type="text" name="personal[email]"><br> <input type="submit"> on the next page, i'm trying to retrieve the values: print_r($personal) says: Array ( [name] => martijn [email] => martijn@tiel.nu ). echo "$HTTP_POST_VARS['personal']['name']"; no value is being displayed. echo $HTTP_POST_VARS['personal']['name']; (whithout "") the value is displayed, but the function 'echo' doesn't work properly anymore. I hope someone can explain me why. regards Martijn -- Edit bug report at http://bugs.php.net/?id=16513&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16513&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16513&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16513&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16513&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16513&r=support Expected behavior: http://bugs.php.net/fix.php?id=16513&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16513&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16513&r=submittedtwice

« previous php.bugs (#4426) next »