Reply to Re: Problem Passing File Names

Your name:

Reply:


Posted by Toby Inkster on 11/18/48 11:43

Jacob Lyles wrote:

> ./directory/file.extention as expected. However, the value in
> the name field of the input tag gets passed through POST as
> /_/directory//file_extention

Dots in form values are replaced with underscores in PHP. This is a
throwback to when you would use $foo instead of $_POST['foo'].

<http://uk2.php.net/variables.external>
(Heading: Dots in incoming variable names)

There's not really any way around it, so it might be worth using, e.g.
base64encode() and base64decode() at each end, as base64-encoded data
never contains dots.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

[Back to original 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

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