I’m saving input from a text field into my database, and then also using it in the body of an outgoing email. Database part seems working fine.
First, I process my string:
[php]$add_details = trim($_POST[‘add_details’]);
$add_details=mysql_real_escape_string($add_details);[/php]
Info gets inserted into the database as:
[php]’$add_details’[/php]
So far so good. Here’s where I’m having a problem.
Output into an email body, but the outputted text is showing the control characters.
Code I’m using:
[php]$MESSAGE_BODY .= "\n\n
Additional Details:$add_details
;}[/php]But the output looks like:
[php]THIS IS A TEST\r\n\r\nThanks,\r\nBen[/php]
Still green around the ears PHP noob. Not sure what I need to do to eliminate the control characters in the output there.
Thanks