Marcus James Christian said: : \' How can I filter out these backslashes so they don't appear on the : final public viewable page? That's due to the magic_quotes variables in the PHP settings. You can apply 'stripslashes()' to the string: $what_they_said = stripslashes($what_they_said); This also will convert \n to a new line, etc, in the string. If you don't want that, and just want to rip any \ characters out (assuming your users *never* enter a slash intentionally) then try: $what_they_said = ereg_replace("\\", '', $what_they_said); Turu. -- Stephen Cope - http://sdc.org.nz/ -- 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]
- Re: [PHP] Filtering out \ when a ' is user entered? Steve Edberg
- Re: [PHP] Filtering out \ when a ' is user entered? Aral Balkan
- RE: [PHP] Filtering out \ when a ' is user entered? scott [gts]
- Re: [PHP] Filtering out \ when a ' is user entered? Philip Olson
- Re: [PHP] Filtering out \ when a ' is user entered? Steve Werby
- Re: [PHP] Filtering out \ when a ' is user entered? Richard Lynch
- Re: [PHP] Filtering out \ when a ' is user ent... Delbono
- Re: [PHP] Filtering out \ when a ' is user... Christian Reiniger
- Re: [PHP] Filtering out \ when a ' is ... Richard Lynch
- Re: [PHP] Filtering out \ when a ' is user entered? Christopher Ostmo
- Re: [PHP] Filtering out \ when a ' is user entered? Stephen Cope
- Re: [PHP] Filtering out \ when a ' is user entered? Aral Balkan
- Re: [PHP] Filtering out \ when a ' is user entered? Marcus James Christian
- Re: [PHP] Filtering out \ when a ' is user entered? dempsejn
- RE: [PHP] Filtering out \ when a ' is user entered? Jason Murray