[thelist] PHP: escaping the apostrophe not wanted

elin tjerngren. artopod elin at artopod.se
Thu Jan 15 12:57:03 CST 2004


Hi,

> Joe/'s Birthday
> 
> This of course is undesireable. I think this is an automatic setting
> or something, but how can I avoid this?

Maybe your magic_quotes_gpc is set to on in your php.ini file (default). 
You can avoid it by using stripslashes("your string")
http://php.net/stripslashes

Regards,

/Elin, http://artopod.com





More information about the thelist mailing list