On Saturday 22 June 2002 07:42, Chris Shiflett wrote:
> PHP is probably escaping the single quotes for you:
> it's -> it\'s
> When addslashes() is applied to this, both the backslash character and
> the single quote are escaped:
> \ -> \\
> ' -> \'
> The result is what you see:
> it\'s -> it\\\'s
> If you strip slashes twice, you'll be back to normal.
> >>When I use addslashes to add a back slash to a single quote, it returns 3
> >>back slashes (example: 'it\\\'s'. Is that correct? Am I doing something
PHP is probably configured to automatically add the slashes. Look in php.ini
for 'magic_quotes' and set accordingly.
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
It isn't easy being the parent of a six-year-old. However, it's a pretty
price to pay for having somebody around the house who understands computers.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php