Page 1 of 1

Problems when someone posts a message with a " sign

Posted: Thu Jun 27, 2002 11:55 am
by hobe
When someone posts a message in my guestbook containing a " sign it will allways show like this: \" how can I avoid that ???

Posted: Thu Jun 27, 2002 12:05 pm
by twigletmac
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:

Code: Select all

$message = stripslashes($message);
echo $message;
That'll get rid of all those backslashes.

Mac

Thanks !

Posted: Sat Jun 29, 2002 8:30 am
by hobe
It worked as I wanted, I'm glad for your help /// hobe