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

From: Date: Thu, 28 Jun 2001 02:19:20 +0000
Subject: Re: Filtering out \ when a ' is user entered?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55448@lists.php.net to get a copy of this message
To all of your who sent so many great answers I would like to say thank you! THANK YOU! THANK YOU! I ended up using strip slashes and it worked perfectly on only my second attempt of putting it into the code! Thanks, Marcus Marcus James Christian wrote: > 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? > > Thanks, > Marcus > > -- > Marcus James Christian - UNLIMITED - > Multimedia Internet Design > http://mjchristianunlimited.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.com Proudly presents the music of CHROMATICUS at http://chromaticus.com and http://artists.mp3s.com/artists/275/chromaticus.html

« previous php.general (#55448) next »