note 27252 added to function.implode

From: Date: Fri, 29 Nov 2002 03:22:09 +0000
Subject: note 27252 added to function.implode
Groups: php.notes 
Request: Send a blank email to php-notes+get-40101@lists.php.net to get a copy of this message
Another user suggests using '[]' in a name for HTML-elements ... ie: <select name=state[] multiple> Don't learn from this, as it's invalid HTML - though most PHP-people seem to use this 'ileagal' syntax. According to the HTML-standard - as recommended by W3C - brackets cannot be used for ID's and NAME's. One should therefore avoid using them for checkboxes and multiple-selects and the likes. Although it may seem a little naive, one could fear that browser-makers would change practice and let their browsers support the standard tomorrow :) Anyway: If we don't code to the standards, why should they do so? And if we and they shouldn't ..... why write standards in the first place? ;o) /Best regards Ole Clausen -- http://www.php.net/manual/en/function.implode.php http://master.php.net/manage/user-notes.php?action=edit+27252 http://master.php.net/manage/user-notes.php?action=delete+27252 http://master.php.net/manage/user-notes.php?action=reject+27252

« previous php.notes (#40101) next »