Coconut99
07-03-2003, 01:54 AM
I have a very simple no-database guestbook that I wrote. When you enter any text with an apostrophe in it (like "I'm insane!"), it places a backslash in front of it, like this: I\'m insane! Is there a way to get around that?
Dude128
07-03-2003, 04:34 AM
that's a good thing, I think, if you're using a language such as PHP. when you display the message, (I'm fairly sure) you need to use the escape character to show the ', in other words the \', so it's actually a good thing that it is being inserted into the message, as long as when it is displayed the ' is being displayed properly and not the \'
or- are you using the actual display to test, and that's how you're disovering this? the above only makes sense if you're looking at how it gets stored, because then it would be displayed properly :P
if that doesn't help any, would you mind posting the code that gets the message and stores it?
Coconut99
07-03-2003, 01:37 PM
Hehe, I'm so proud of myself, I figured it out. I needed to use stripslashes(). Thanks for your help anyway, though.