Re: Filtering out \ when a ' is user entered?

From: Date: Wed, 27 Jun 2001 21:17:37 +0000
Subject: Re: Filtering out \ when a ' is user entered?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55421@lists.php.net to get a copy of this message
Marcus James Christian pressed the little lettered thingies in this order... > Hello, > > I'm pretty new to PHP but all I've seen of it so far I pretty much love! > > I've built a web log but when the user enters their data and they use ' or > " (and you know they will) php always shows it from the included web log > as > > \' How can I filter out these backslashes so they don't appear on the > final public viewable page? > $var = stripslashes($var); echo $var; or echo stripslashes($var); http://www.php.net/manual/en/function.stripslashes.php Have fun... Christopher Ostmo a.k.a. tech@AppIdeas.com AppIdeas.com Meeting cutting edge dynamic web site needs For a good time, http://www.AppIdeas.com/

« previous php.general (#55421) next »