Menu
Hello,
I’m trying to strip ‘ from my emails, so that when I log them in my database, it won’t mess up the SQL query.
I’ve got a varaible for the textarea of my form:
$comments = $_POST[‘comments’];
preg_replace(“#’#”, “”, $comments);
then it INSERTS INTO the database.
If it doesn’t work, the email is not sent and an error is displayed.
But this does not work. Should I use the trim function with the charlist parameter? I’m really out of ideas.
Thanks for any help,
Michael.