Hi,
I have a form which has an auto-response email and works beautifully. Now, I want to replace the html content of the body with a php variable. The variable gets its value from a database and the content is entered via browser wysiwyg editor.
If I pass the variable as a hidden field like this:
<?php echo $row_email_body['email1_body']; ?>
.. the html prints onto the page the form is on as well as on the email
If I try to use it from an unfiltered recordset the content doesn't show on the email.
$top = "<br>";
$body = print($row_email_body['email1_body']);
$bottom = "<br>";
$from = "Competition";
// set parameters
$recipient = $HTTP_POST_VARS["email"];
$subject = "Competition";
$message = $top . $body . $bottom;
Does anyone know what I may be doing wrong here?
Thanks for any help.