Re: Trouble with \\ and form

From: Date: Wed, 16 Oct 2002 11:42:33 +0000
Subject: Re: Trouble with \\ and form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120167@lists.php.net to get a copy of this message
Easy way is stripslashes(), just watch out you don't put stripslashed field input into the database Christian Ista wrote:
Hello, I'm trying the example1 give in xml_parse_into_struct section here : http://www.php.net/manual/en/function.xml-parse-into-struct.php works fine. But know I'm trying to change the file name "moldb.xml" by a file name come from a form <input type="file" ....>. I receive from the form something like that : C:\\Directory1\\Directory2\\File.xml That's not work( the code to parse the XML file) But If you replace the the string by C:\Directory1\Directory2\File.xml That's work. Is there an easy way to change \\ by \ or an another solution Christian,


« previous php.general (#120167) next »