Page 1 of 1

special character handling

Posted: Thu Apr 10, 2003 9:38 pm
by theclay7
I have a forum and in add/edit/quote/reply, people can preview what they have entered, but if they entered special charecter like " ' (double or single quote), the php will generate a \" '' in the preview and in the form field, so when they submit, the \ will also appear.

How can I handle this...

the column field is called $body

where and how should I solve it?

Posted: Thu Apr 10, 2003 11:04 pm
by bionicdonkey
addslashes
addcslashes
stipslashes
stripcslashes