Hey Marcus,

Lots of different ways...first, the \ is being added because you have 
magic_quotes turned on...you can use set_magic_quotes_runtime to turn 
them off in a specific script, edit your php.ini file to turn them off 
completely, or just do a string replace - replace \' with ' and \" 
with "
best of luck,
jack dempsey

----- Original Message -----
From: Marcus James Christian <[EMAIL PROTECTED]>
Date: Wednesday, June 27, 2001 0:18 am
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: php-list-
> [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]

Reply via email to