Well, I've been ignoring this problem for awhile. But I'm trying to produce finished product script so I can't ignore this any longer.
Whenever I have a user type something up like a news update and they use an apostrophe the variable that gets passed into the PHP script from the form contains a \' where there used to be just an apostrophe. I don't know if the \ is being added by PHP because it needs to escape the apostrophe or what. But I've tried everything including using eregi replace to replace the \' with ' but that doesn't replace it correctly.
Also just as a test, when I write a variable into php such as
$var = "I'm testing";
That apostrophe works fine.
But if I were to type that into a form, then submit it.
The PHP script would echo
"I\'m testing".
So in a nutshell thats the problem. I have been thinking about this for a long time and am officially stumped!
Any help is greatly Appreciated!
Thanks yal!