Avatar of TecTaoMC
TecTaoMC
 asked on

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

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?
PHPWeb DevelopmentMySQL Server

Avatar of undefined
Last Comment
TecTaoMC

8/22/2022 - Mon
TecTaoMC

ASKER
I also just checked through phpinfo.php and magic quotes is on.
Ray Paseur

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.
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_6630-Magic-Quotes-a-bad-idea-from-day-one.html
TecTaoMC

ASKER
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
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
TecTaoMC

ASKER
good job