Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

743 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

12 Experts available now in Live!

Get 1:1 Help Now