escaping characters

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jwerre
Forum Newbie
Posts: 18
Joined: Thu Feb 05, 2009 5:06 pm

escaping characters

Post by jwerre »

I have a text field that outputs a string but for some reason it escapes apostrophes ( ' ). So if you type "john's computer" in the text field and echo the post I get "john\'s computer" is there some kind of method that will remove the back slash?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: escaping characters

Post by Benjamin »

magic_quotes are enabled. See: http://us2.php.net/magic_quotes
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: escaping characters

Post by susrisha »

stripslashes()
Post Reply