Page 1 of 1

Character problem

Posted: Wed Apr 05, 2006 4:57 pm
by jonwondering
Hi, when the user enters the ' character in the form and then my site stores it into mysql db, everything seems to be fine.

But when the user views his information, the ' character is displayed as \\\'

For example, user puts in:
what'sup

the site will show it as:
what\\\'sup

Does anybody know how to fix that?

Thanks.

P.S.: I use strip_tags() when displaying user info.

Posted: Wed Apr 05, 2006 5:55 pm
by wildbat

Posted: Wed Apr 05, 2006 6:56 pm
by josh
or just turn off magic quotes

Posted: Wed Apr 05, 2006 7:06 pm
by jonwondering
ok that works. thanks wildbat and jshpro2.