#20202 [Opn->Fbk]: Form elements id Attrbute Ignored
| From: | derick@php.net | Date: | Thu, 31 Oct 2002 20:48:55 +0000 |
| Subject: | #20202 [Opn->Fbk]: Form elements id Attrbute Ignored | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23846@lists.php.net to get a copy of this message | ||
ID: 20202
Updated by: derick@php.net
Reported By: raffaele@vpresence.com
-Status: Open
+Status: Feedback
Bug Type: Feature/Change Request
Operating System: WinXP SP1
PHP Version: 4.2.2
New Comment:
This is up to the browser to do. Did you verify with a line sniffer /
network tracer to see what happened? My bet is that the browser didn't
send the data correctly, and of course PHP doesn't record it then.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-10-31 14:46:26] raffaele@vpresence.com
W3C Specs page about id attribute in XHTML 1.0 is at
http://www.w3.org/TR/xhtml1/#h-4.10
------------------------------------------------------------------------
[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