#43625 [Fbk->Opn]: square brackets in form input name are 'dropped'
| From: | php-qa at sebastianmendel dot de | Date: | Tue, 29 Jan 2008 08:09:16 +0000 |
| Subject: | #43625 [Fbk->Opn]: square brackets in form input name are 'dropped' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121708@lists.php.net to get a copy of this message | ||
ID: 43625
User updated by: php-qa at sebastianmendel dot de
Reported By: php-qa at sebastianmendel dot de
-Status: Feedback
+Status: Open
Bug Type: *Web Server problem
Operating System: Windows XP SP2
PHP Version: 5.3CVS-2007-12-18 (CVS)
New Comment:
Apache mod_php
Previous Comments:
------------------------------------------------------------------------
[2008-01-29 00:20:41] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Which SAPI is used?
------------------------------------------------------------------------
[2007-12-18 15:26:27] php-qa at sebastianmendel dot de
Description:
------------
the input name: "fields[field[test]]" reaches the script as
$_POST["fields"]["field[test"]
Reproduce code:
---------------
<html><head></head><body>
<form action="test.php" method="post">
<input type="text" name="funcs[field[test]]" value="test">
<input type="submit">
</form>
<pre><?php var_dump($_POST) ?></pre>
</body></html>
Expected result:
----------------
array(1) {
["funcs"]=>
array(1) {
["field[test]"]=>
string(4) "test"
}
}
Actual result:
--------------
array(1) {
["funcs"]=>
array(1) {
["field[test"]=>
string(4) "test"
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43625&edit=1