Re: square brackets in form names violate HTML specs?

From: Date: Sat, 13 Sep 2003 18:15:29 +0000
Subject: Re: square brackets in form names violate HTML specs?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162513@lists.php.net to get a copy of this message
* 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"> > > According to the specs, the square brackets in "stuff[title]" are > technically illegal. > > http://www.w3.org/TR/html4/types.html#h-6.2 Yes, this is correct. The way to properly do it would be to set set your name as: <input name="stuff%5Btitle%5D" value="" type="text" size="40"> Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#162513) next »