note 43374 added to faq.html

From: Date: Sat, 19 Jun 2004 02:11:28 +0000
Subject: note 43374 added to faq.html
Groups: php.notes 
Request: Send a blank email to php-notes+get-71311@lists.php.net to get a copy of this message
Kenn White wrote: So for XHTML strict, the bottom line: 1. form, use id, not name 2. input, use id if you can, but if you need to use bracketed notation (for example, passing PHP arrays), i.e., foo[], you *MUST* use name for XHTML strict validation. I don't think they are going to deprecate name entirely. For one thing, to be of any use, radio boxes and occasionally checkboxes must have the same identifying mark, in this case a name. By the rules of the DTD, id's MUST be unique. In that respect, it is probably better to not use id in input elements at all. Of course, it's a good idea to use ids as sparingly as possible. ---- Manual Page -- http://www.php.net/manual/en/faq.html.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43374 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43374&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43374&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71311) next »