This is a discussion on Are xhtml 1.1 forms compatible with PHP5? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi, My understanding is that the name attribute has been removed from xhtml 1.1 completely. However when I try ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
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" /> -- -------------------------------- Richard Quick richard.quick@chocolatemagazine.co.uk |
|
|||
|
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 |
|
|||
|
On Wed, 25 May 2005 11:36:45 +0100, "Richard Quick"
<richard.quick@chocolatemagazine.co.uk> wrote: >My understanding is that the name attribute has been removed from xhtml 1.1 >completely. Nope. http://www.w3.org/TR/xhtml-modulariz...extformsmodule http://www.w3.org/TR/xhtml-modulariz...a_module_Forms http://www.w3.org/TR/xhtml11/changes.html#a_changes -- Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk> <http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool |
|
|||
|
"Andy Hassall" <andy@andyh.co.uk> wrote in message
news:d59c91ll8197pdcupqtng1e262ktcb9phq@4ax.com... > On Wed, 25 May 2005 11:36:45 +0100, "Richard Quick" > <richard.quick@chocolatemagazine.co.uk> wrote: > > >My understanding is that the name attribute has been removed from xhtml 1.1 > >completely. > > Nope. > > http://www.w3.org/TR/xhtml-modulariz...extformsmodule > http://www.w3.org/TR/xhtml-modulariz...a_module_Forms > http://www.w3.org/TR/xhtml11/changes.html#a_changes > Thanks. That's just what I needed to know. -- Richard Quick http://www.chocolatemagazine.co.uk |