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