Creating line breaks in output?
Posted: Wed Feb 18, 2004 3:39 pm
I have made an email form in Flash that outputs to a PHP file to then be mailed to an email address. Everything works but the output in the email is all on one line. I would like to be able to make a line break so that each output would be on its own line.
The FLash form has seven fields that are all user input fields. (i.e. firstName, lastName, phone, altPhone, address, and commentBox.) I would like each one to appear in the email on it's own line.
The code is as follow:
<?php
$sendTo = "lou@selway.umt.edu";
$subject = "Design Turf Career Oppurtunities Reply";
$headers = "From: " . $_POST["firstName"]. "','".$_POST{"lastName"];
$headers .= "<" . $_POST["email"] .">\r\n";
$message = "First Name: " . $_POST["firstName"]. "','".$_POST["lastName"]. "','".$_POST["phone"]. "','".$_POST["altPhone"]. "','".$_POST["email"]. "','".$_POST["address"]. "','".$_POST["commentBox"];
mail($sendTo, $subject, $message, $headers);
?>
The FLash form has seven fields that are all user input fields. (i.e. firstName, lastName, phone, altPhone, address, and commentBox.) I would like each one to appear in the email on it's own line.
The code is as follow:
<?php
$sendTo = "lou@selway.umt.edu";
$subject = "Design Turf Career Oppurtunities Reply";
$headers = "From: " . $_POST["firstName"]. "','".$_POST{"lastName"];
$headers .= "<" . $_POST["email"] .">\r\n";
$message = "First Name: " . $_POST["firstName"]. "','".$_POST["lastName"]. "','".$_POST["phone"]. "','".$_POST["altPhone"]. "','".$_POST["email"]. "','".$_POST["address"]. "','".$_POST["commentBox"];
mail($sendTo, $subject, $message, $headers);
?>