Re: square brackets in form names violate HTML specs?
| From: | Eugene Lee | Date: | Sat, 13 Sep 2003 21:21:56 +0000 |
| Subject: | Re: square brackets in form names violate HTML specs? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162523@lists.php.net to get a copy of this message | ||
On Sat, Sep 13, 2003 at 06:15:29PM +0000, Curt Zirzow wrote:
: * Thus wrote Eugene Lee (list-php@fsck.net):
: > Something I've noticed in PHP is a proliferation of code like this:
: >
: > <input name="stuff[title]" value="" type="text"
size="40">
[...]
: The way to properly do it would be to set set your name as:
:
: <input name="stuff%5Btitle%5D" value="" type="text"
size="40">
Great idea, thanks Curt!