You are here: Re: method="POST" changes '.' to '_' « PHP Programming Language « IT news, forums, messages
Re: method="POST" changes '.' to '_'

Posted by Andy Hassall on 07/06/06 22:49

On 6 Jul 2006 15:34:38 -0700, "Robert S" <robert.spam.me.senseless@gmail.com>
wrote:

>> >I am trying to use POST to transfer data to another page. When I do
>> >this, '.' characters get converted to"_". For example:
>> >
>> You'd have to patch PHP.
>>
>
>Thanks for the speedy answer.
>
>Is there another way? I'm using debian on a work PC and am extremely
>reluctant to do any patching.

If you're brave, then there's $HTTP_RAW_POST_DATA, but since you'll then have
to do your own POST-data decoding then beware of getting it wrong.

Just going back to your original post:

> <form action="test.php" method="post">
> <input type="submit" name="filename.txt">
> </form>

Are you committed to this layout? "filename.txt" can exist fine as a value,
it's just as a name it's a problem. Can you not send the filename over as a
value in an input type=hidden field, for example?

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

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