I might be wrong, but if you did something like this.. <?php $somevar = your database stored data; $somevar = stripslashes($somevar); echo $somevar; ?> would work quite well, I think. James Cox -----Original Message----- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: 27 June 2001 05:19 To: [EMAIL PROTECTED] Subject: [PHP] Filtering out \ when a ' is user entered? 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
- [PHP] Filtering out \ when a ' is user entered? Marcus James Christian
- RE: [PHP] Filtering out \ when a ' is user ent... Jamie Thompson
- Re: [PHP] Filtering out \ when a ' is user... Alexander Wagner
- Re: [PHP] Filtering out \ when a ' is user ent... ReDucTor
- RE: [PHP] Filtering out \ when a ' is user ent... Matt Williams
- Re: [PHP] Filtering out \ when a ' is user ent... Steve
- Re: [PHP] Filtering out \ when a ' is user ent... Meir Kriheli - MKsoft
- Re: [PHP] Filtering out \ when a ' is user ent... Jason Stechschulte
- Re: [PHP] Filtering out \ when a ' is user ent... Christian Reiniger
- Re: [PHP] Filtering out \ when a ' is user ent... James Cox
- Re: [PHP] Filtering out \ when a ' is user ent... Steve Edberg
- Re: [PHP] Filtering out \ when a ' is user ent... Aral Balkan
- RE: [PHP] Filtering out \ when a ' is user ent... scott [gts]
- Re: [PHP] Filtering out \ when a ' is user ent... Philip Olson
- Re: [PHP] Filtering out \ when a ' is user ent... Steve Werby
- Re: [PHP] Filtering out \ when a ' is user ent... Richard Lynch
- Re: [PHP] Filtering out \ when a ' is user... Delbono
- Re: [PHP] Filtering out \ when a ' is ... Christian Reiniger
- Re: [PHP] Filtering out \ when a '... Richard Lynch
- Re: [PHP] Filtering out \ when a ' is user ent... Christopher Ostmo