Re: HTML id attribute and arrays
| From: | Benjamin Hawkes-Lewis | Date: | Fri, 17 Dec 2010 17:49:56 +0000 |
| Subject: | Re: HTML id attribute and arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310113@lists.php.net to get a copy of this message | ||
Martin C <mumu@seznam.cz> wrote:
> How should I follow the HTML specification while having the passed
> parameters automatically converted to arrays in PHP?
The "name" attribute, not the "id" attribute, is used as the key when
submitting form values.
The "name" and "id" attributes do not have to be the same.
--
Benjamin Hawkes-Lewis