Reply to Re: Are xhtml 1.1 forms compatible with PHP5?

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация