Re: ID vs NAME in different browsers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 28 January 2006 18:20, David Hall wrote:


> Uh, sorry to disappoint, but that's a description of the form element,
> not of the input element or select input.
Right.

> In fact, if you go to
>
http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4.2
> , you will see that the example form quite clearly uses name.  And for
> the input element,
>
http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4.2
> says that name assigns the control name.
> 
Right.

> The attributes for the form element are completely independent of the
> input elements.
Right.

> (Note, for things like radio buttons, using id makes no 
> sense.  You must have multiple elements with the same name.  If you used
> id for these multiple elements, you would be breaking the rules of html
> saying only one element can have a certain id . . .)
Excellent example! I think you've answered my question: I'll have to keep
using both NAME and ID.

Thanks a lot!
Niels

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux