|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-03-27 13:35 UTC] ab@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: ab
[2014-03-27 13:35 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Description: ------------ I often prefer to use for input elements namestrings in array notation, similar to echo '<input type="image" src="/img/lupe.gif" name="btn[show][' . $id . ']">'; This is very handy, unfortunately it doesn't work when Input-Type = Image. Result will be: Array ( [btn] => Array ( [show] => Array ( [3] => 9 ) ) ) Looking into the http-transfer, everything is still ok: Content-Disposition: form-data; name="btn[show][1].x" Content-Disposition: form-data; name="btn[show][1].y" Due to the "point substitution" in combination with the array spelling, the x-coordinate will be replaced by the y-coordinate Expected result: ---------------- I would be glad, if for further PHP-Versions the result could be: ( [btn] => Array ( [show] => Array ( [3] => Array { [x] => 9 [y] => 27 } ) ) ) For compatibility reasons, the translation for simple names perhaps should remain the same <input type="image" name="image" ... > becomes furthermore to $_POST['image_x'] = 9 $_POST['image_y'] = 27