Re: Problem with backslashes disappearing

From: Date: Wed, 06 Mar 2002 14:36:33 +0000
Subject: Re: Problem with backslashes disappearing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87462@lists.php.net to get a copy of this message
Have you tried escaping the backslash character with another one: "\\"? On Wed, 2002-03-06 at 06:34, Torkil Johnsen wrote: > Hello! > > I have a simple form taking in some user text input and storing it in a > mysql database. My problem is that PHP strips off any backslashes in the > text. I realize that backspace is used as an escape character in PHP, but > sometimes i DO want it in there!! > > Is there a way to do this so that I can store them? For example replacing > the backslash with some code? Like "&" can replace "&"? > > Anyone? > > - Torkil > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Sliante, Richard S. Crawford mailto:rscrawford@mossroot.com http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Yahoo!: rscrawford MSN: underpope@hotmail.com "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupery "Push the button, Max!"

« previous php.general (#87462) next »