Re: ID vs NAME in different browsers

From: Date: Sat, 28 Jan 2006 16:48:18 +0000
Subject: Re: ID vs NAME in different browsers
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-229404@lists.php.net to get a copy of this message
On Saturday 28 January 2006 16:47, Jason Petersen wrote: > HTML Forms should always use the NAME attribute to pass values, never ID. > You can use print_r($_REQUEST); at the top of your script to debug. > Thank you for your answer. W3C says: [http://www.w3.org/TR/html4/interact/forms.html] name = cdata [CI] This attribute names the element so that it may be referred to from style sheets or scripts. Note. This attribute has been included for backwards compatibility. Applications should use the id attribute to identify elements. So my question remains: How well do browsers support using only id? //Niels

« previous php.general (#229404) next »