Problems when someone posts a message with a " sign
Moderator: General Moderators
Problems when someone posts a message with a " sign
When someone posts a message in my guestbook containing a " sign it will allways show like this: \" how can I avoid that ???
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
The quotes have to be escaped otherwise you'll have problems. What you need to do is, before the info is output to the browser use the stripslashes() function:
That'll get rid of all those backslashes.
Mac
Code: Select all
$message = stripslashes($message);
echo $message;Mac