square brackets in form names violate HTML specs?

From: Date: Sat, 13 Sep 2003 17:34:12 +0000
Subject: square brackets in form names violate HTML specs?
Groups: php.general 
Request: Send a blank email to php-general+get-162510@lists.php.net to get a copy of this message
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 ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). Thoughts? Suggestions for writing flexible PHP code that at least passes the HTML 4.01 Transitional DTD?

« previous php.general (#162510) next »