You are here: Re: Why is PHP substituting an underscore in my form? « PHP Programming Language « IT news, forums, messages
Re: Why is PHP substituting an underscore in my form?

Posted by Kimmo Laine on 11/07/06 06:19

"Andy Hassall" <andy@andyh.co.uk> wrote in message
news:gjouk2h89a103m6uhjdcl8rt1rq97jcd21@4ax.com...
> On Mon, 6 Nov 2006 11:35:25 +0200, "Kimmo Laine" <spam@outolempi.net>
> wrote:
>
>><laredotornado@zipmail.com> wrote in message
>>news:1162787385.554518.319680@e3g2000cwe.googlegroups.com...
>>>
>>> I'm using PHP 4.4.4. I notice for form elements that contain spaces,
>>> PHP substitutes an underscore for the element name when the form is
>>> submitted. For example, if I have this page (test.php)
>>
>>Spaces are invalid characters in name attributes. "ID and NAME tokens must
>>begin with a letter ([A-Za-z]) and may be followed by any number of
>>letters,
>>digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and
>>periods
>>(".")." (source: <http://www.w3.org/TR/REC-html40/types.html#type-name> )
>
> Ah, this one again. The name attribute of <input> elements et. al. are NOT
> of
> the datatype NAME, they are CDATA, and not subject to these rules.

Oh my, I was way wrong then. Thank you for correcting me. :)

--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)

 

Navigation:

[Reply to this 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация