RE: [PHP] php processing name vs. id field

From: Date: Fri, 02 Jul 2010 14:10:57 +0000
Subject: RE: [PHP] php processing name vs. id field
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.general 
Request: Send a blank email to php-general+get-306634@lists.php.net to get a copy of this message
At 2:01 PM +0100 7/2/10, Ashley Sheridan wrote: -snip-
I agree with Ash 100%. There is an "id" and a "name" attribute for input (et al) tags -- that's html. I can use the attribute "name" for php and the attribute "id" for javascript and css because these are different languages with different scopes running in different environments -- that's the way it is. Each attribute can be accessed by a variety of languages with no requirement on any specific language to know what the other languages may, or may not, be doing -- that's logical. I can also use the same value for any attribute because there is no restriction on that either -- as well as it should be. So, what's the major beef here? Is someone objecting to having both "id" and "name" being legal attributes for a tag? If so, this is really not the place to submit a compliant. However, it is the place to see the error of that thinking. Giving the slightest bit of thought to dismissing the "name" attribute from tags should result in the realization that the act would break countless forms already in use. So the "beef" here is not well thought out, nor is it likely to happen. Arguments against using/dismissing the "name" attribute in tags is simply nonsense. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#306634) next »