And what happends with the backslaches if some idiot (read: user)
makes this happens:
$dummy = stripslashes("http:\\www.microsoft.hell\");
(Bill's web browser's accepts this syntax)
-----Original Message-----
From: Duane Lakoduk
To: 'Harpreet'; 'php-windows'
Sent: 17-2-2004 5:38
Subject: RE: [PHP-WIN] using backslash \ in php
See: stripslashes() and addslashes() functions.
> -----Original Message-----
> From: Harpreet [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 16, 2004 10:01 PM
> To: php-windows
> Subject: [PHP-WIN] using backslash \ in php
>
>
> I have a form with a textbox that allows a user to enter the
> filepath. If i
> enter the file path as c:/ it works just fine.
>
> If I type in c:\ on submit form it converts the \ to \\ and
> on every submit
> the number of slashes double. How can I use the backslash as
> I need the
> backslash for specifing the filepath. How can I stop it to replicate??
>
> Help is appreciated.
>
> Thanks,
>
> Regards
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php