hiya,
I've created a msg area inside of flash which communicates with my feedback.PHP file, inturn sending the msg to my Email address. This works fine.
The problem im having is getting rid of the break tags<br />, that are included in the msg at the end of each line. for example
and this is my feedback.PHP code
<?php
if ($_POST)
{
$mailTo = "smith@gmail.com";
$mailSubject = "Website Contact from - (" . $_POST['name'] . ")";
$Header = "MIME-Version: 1.0\r\n";
$output = "From : " . $_POST['name']. "\r\n";
$output .= "Email : " . $_POST['email'] . "\r\n";
$output .= "Message : " . $_POST['message'] . "\r\n";
$output = nl2br($output);
if (mail($mailTo, $mailSubject, stripslashes($output), $Header))
{
echo("&result=1&");
}
else
{
echo("&result=2&");
}
}
else
{
echo("This script runs only in Flash!!!");
}
?>
and also when the messages are recieved and in my inbox , it refers to the sender (my website) as anonymous, how do i change this also? so it says 'camoconnell.com' or something similar.
Thank you
Cam