Hi,
What's the ASCII code for a line separator in a Flash input text box?
I've got an email form on my Flash site made using the KIRUPA tutorial that sends its variables to a PHP script (see attached) that consequently sends an email to me containing the variable results. The problem is that the email I get doesn't include line breaks, e.g. if someone fills in the email form like this:
Hi
How are you?
The email I receive displays the message like this:
HiHow are you?
A way I could resolve this issue would be to work out the ASCII code for a line seperator in a flash input text box is and make my PHP script replace this character with line feed '\n'
Any ideas?
Peace
Leao
PHP Code:
<?
$to = 'mail@mydomain.org';
$subject = 'St. Patrick\'s message';
$body = "You have received a message via the St. Patrick's website. The details of the message are listed below...\n\nName: $yourname\nEmail: $youremail\nMessage: $yourmessage";
$body = wordwrap($body, 70);
$headers = "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: mail@mydomain.org\r\n";
$headers .= "Return-Path:mail@mydomain.org\r\n";
$headers .= "Reply-To: $youremail\r\n";
$headers .= 'X-Mailer: PHP/' . phpversion()."\r\n";
mail($to, $subject, $body, $headers, "-fmail@mydomain.org.org");
?>