Posted by Manuel Lemos on 05/25/05 19:23
Hello,
on 05/25/2005 07:36 AM Richard Quick said the following:
> My understanding is that the name attribute has been removed from xhtml 1.1
> completely.
>
> However when I try to process a form using PHP5 it does not seem to
> recognise fields which only have an id attribute.
>
> <input type="text" id="name" value="..." size="33" />
No you are confused. The name is necessary to tell the browser the names
of the input values to pass to the server when the form is submited. The
id attribute is meant for accessing DOM objects via Javascript,
therefore these must be unique document wide. Still this has nothing to
do with PHP.
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Navigation:
[Reply to this message]
|