RE: [PHP-WIN] $_POST issues with file paths
| From: | Mikey | Date: | Fri, 25 Jul 2003 20:06:53 +0000 |
| Subject: | RE: [PHP-WIN] $_POST issues with file paths | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20913@lists.php.net to get a copy of this message | ||
You could try using forward slashes - they are functionally equivalent from
a PHP point of view...
Mikey
> -----Original Message-----
> From: Jon Phipps [mailto:lordpuma@shaw.ca]
> Sent: 25 July 2003 19:13
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] $_POST issues with file paths
>
>
> Here is my problem I need to read a file path from this construct
> Base Path <input type="text" name="sys_path"
> value="e:\\jon\\site_dev\\php-html" size="40"
> maxlength="80"><br>
>
> however when I read it with
> $appath=$_POST["sys_path"];
> what I get is
> e:\\\\\\jon\\\\\\site_dev\\\\\\php-html
> not what I am expecting which is
> e:\\jon\\site_dev\\php-html
>
> how can I stop the post method from escaping all my backslashes twice
> or do I have to write a routine that kills the surpluss ones?
>
> Jon
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>