Hi all,
I am having a problem with my PHP form. Users enter comment in the comments box and when my php script processes the comments variable, it adds backslashes. How do I remove backslashes? I tried using stripslashes function but it started generating MySQL error.
Here is the variable look like in the PHP script:
$comments = mysql_real_escape_string($_POST[‘comments’]);
The “$comments” variable is passed to an email and also stored in MySQL database. Please help!