Hi, how to avoid adding a backslash to ", or ' in a form? I've tried to use str_replace("\", "", $string) but it causes the problem when the user really want to enter a . like a windows path or something.
$string = stripslashes($string);
check the magic_quotes_qpc directive in php.ini. Set it to off.