I have a program that people enter some text and its printed on the screen when they hit enter. Any time they use an apostrophe, I get something like this.
I talk alot, don''t I? The question mark is my favorite punctuation mark, isn''t it?
How do I get rid of the \???
How to remove / when using an apostrophe
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
i'd stick with stripslashes
Code: Select all
<?
if($_POSTї'action'] == "go"){
echo stripslashes($_POSTї'input']);
} else {
?>
<form method="post">
<input type="text" name="input" /><br />
<input type="hidden" name="action" value="go" />
<input type="submit" />
</form>
<?
}
?>