Bug #10842: FAQ section 8.1 should mention <input name="array[key]"> syntax
| From: | tim at xi dot co dot nz | Date: | Mon, 14 May 2001 02:11:17 +0000 |
| Subject: | Bug #10842: FAQ section 8.1 should mention <input name="array[key]"> syntax | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55106@lists.php.net to get a copy of this message | ||
From: tim@xi.co.nz
Operating system: N/A
PHP version: 4.0.5
PHP Bug Type: Documentation problem
Bug description: FAQ section 8.1 should mention <input name="array[key]">
syntax
Section 8.1 of the FAQ linked from php.net talks about
using HTML forms to create arrays in PHP. It describes
the <input name="array[]"> syntax, but specifically
mentions that you can't use array keys - which is wrong,
I'm not sure which version this was added in, but
you can happily do
<input name="array[key1]" ... >
<input name="array[key2]" ... >
and use $array in your target script.
I find this terribly useful, so I thought it should be in
the FAQ.
--
Edit Bug report at: http://bugs.php.net/?id=10842&edit=1