Are xhtml 1.1 forms compatible with PHP5?

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-25-2005
Richard Quick
 
Posts: n/a
Default Are xhtml 1.1 forms compatible with PHP5?

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


Reply With Quote
  #2 (permalink)  
Old 05-25-2005
Manuel Lemos
 
Posts: n/a
Default Re: Are xhtml 1.1 forms compatible with PHP5?

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
Reply With Quote
  #3 (permalink)  
Old 05-26-2005
Andy Hassall
 
Posts: n/a
Default Re: Are xhtml 1.1 forms compatible with PHP5?

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
Reply With Quote
  #4 (permalink)  
Old 05-27-2005
Richard Quick
 
Posts: n/a
Default Re: Are xhtml 1.1 forms compatible with PHP5?

"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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0