Solved

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

Posted on 2012-12-20
5
318 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
  • 3
  • 2
5 Comments
 

Author Comment

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

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 108

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

930 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now