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 Andy Hassall on 11/06/06 04:39

On 5 Nov 2006 20:29:45 -0800, "laredotornado@zipmail.com"
<laredotornado@zipmail.com> wrote:

>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)
>
><html>
>the output is
>
>key: Hi_There val:2
>key: __utma val:171843875.238415504.1160252422.1161727205.1161788841.6
>key: __utmz
>val:171843875.1160252422.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
>key: PHPSESSID val:f8cc02f8aa63d9cd7a50e6a1d340b1b8
>
>How do I preserve the space in the element name?

Short answer, you can't; longer answer:
http://groups.google.co.uk/group/comp.lang.php/browse_frm/thread/a4c5441305e55538

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация