?
Solved

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

Posted on 2012-12-20
5
Medium Priority
?
334 Views
Last Modified: 2013-03-13
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?
0
Comment
Question by:TecTaoMC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:TecTaoMC
ID: 38710780
I also just checked through phpinfo.php and magic quotes is on.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 38711484
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
0
 

Author Comment

by:TecTaoMC
ID: 38982600
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
0
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 600 total points
ID: 38982601
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
0
 

Author Closing Comment

by:TecTaoMC
ID: 38983143
good job
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question