Hello,
Today I just wrote my first PHP script and it seems to be working well, with the exception of one slight issue.
To give a little context:
The php file that I have setup takes input from a feedback page and sends it in an email. Everything works fine except when special characters (like apostrophes) are submitted from users.
When the php script processes the info and sends the email, a message that is intended to look like this:
I don't like that
comes out like this:
I don\'t like that.
What can I do to fix this?
Here is the code:
<?
$mailname = $REQUEST['mailname'] ;
$message = $REQUEST['usermessage'] ;
$subj = $REQUEST['subj'] ;
$emailad = $REQUEST['emailad'] ;
mail( "email@email.com", "Feedback Form Results",
"Feedback Subject: $subj \n \n \nFrom: $mailname \n \n \n \n$message", "From: $emailad" );
header( "Location: ./thanks.html" );
?>
Thanks a lot