#20202 [Opn]: Form elements id Attrbute Ignored
| From: | raffaele at vpresence dot com | Date: | Thu, 31 Oct 2002 20:46:26 +0000 |
| Subject: | #20202 [Opn]: Form elements id Attrbute Ignored | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23845@lists.php.net to get a copy of this message | ||
ID: 20202
User updated by: raffaele@vpresence.com
Reported By: raffaele@vpresence.com
Status: Open
Bug Type: Feature/Change Request
Operating System: WinXP SP1
PHP Version: 4.2.2
New Comment:
W3C Specs page about id attribute in XHTML 1.0 is at
http://www.w3.org/TR/xhtml1/#h-4.10
Previous Comments:
------------------------------------------------------------------------
[2002-10-31 14:36:20] raffaele@vpresence.com
PHP seems to ignore the id attribute given to form elements. It just
consider the name attribute
So while a element like <input type="text" name="first_name" /> will
create a $_post["first_name"] variable if submitted, for exemple, the
similar tag <input type="text" id="first_name" /> will not create any
variable.
The problem is that in the XHTML 1.0 W3C specs the "name" attribute is
depreached in favor of "id". This could cause problems in the near
future where XHTML whill be more widespread.
It would be appreciated if the "id" attribute handling is added to
future PHP releases.
Info:
I installed PHP on my WinXP SP1 for use with IIS using the included
installer and use all the default choices.
My inst
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20202&edit=1