Solved

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

Posted on 2012-12-20
5
327 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 110

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 110

Accepted Solution

by:
Ray Paseur earned 150 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
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:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

737 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