RE: [PHP] Illegal characters in HTML form element names.

From: Date: Tue, 17 Sep 2002 14:10:00 +0000
Subject: RE: [PHP] Illegal characters in HTML form element names.
Groups: php.general 
Request: Send a blank email to php-general+get-116643@lists.php.net to get a copy of this message
> -----Original Message----- > From: Jared Williams [mailto:jared.williams@ntlworld.com] > Sent: 17 September 2002 13:20 > > Hmm > http://www.w3.org/TR/html4/types.html#type-name > > '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 (".").' > > Seems to me, the rules for valid IDs & NAMEs are the same... But the value of the name attribute of a form element is not a NAME token. http://www.w3.org/TR/html401/interact/forms.html#adef-name-FORM 'name = cdata [CI] 'This attribute names the element so that it may be referred to from style sheets or scripts.' followed by the note I quoted previously. On the other hand, the value of the id attribute *is* a NAME token, so is restricted as per your quote above. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#116643) next »