How to keep  \ (backslash) from inserting before ' on form submits

TecTaoMC
TecTaoMC used Ask the Experts™
on
I have a couple of forms that when when a word is written, example: "he's"  the word is inserted into the mysql database as "he\'s"

How to keep the \ from being part of the submission?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I also just checked through phpinfo.php and magic quotes is on.
Most Valuable Expert 2011
Top Expert 2016

Commented:
Magic Quotes is usually the problem when you find backslashes in your data base.  Please read this article and post back with any questions.  It explains what happened and what you can do about it.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_6630-Magic-Quotes-a-bad-idea-from-day-one.html

Author

Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for TecTaoMC's comment #a38710780

for the following reason:

got it taken care of
Most Valuable Expert 2011
Top Expert 2016
Commented:
Are you seriously going to tell me that with the article link in front of you it took you almost three months to get around to fixing the problem?  And that the article was not of any use?  

It's considered good form to award some points when an EE colleague tries to help you with a problem.  I'll post an objection to closing this so you can explain what's going on here.

Thanks and regards, ~Ray

Author

Commented:
good job

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial