# PHP Email. All fields in one line of email

**URL:** <https://forum.kirupa.com/t/php-email-all-fields-in-one-line-of-email/84676>\
**Category:** Uncategorized\
**Created:** [March 29, 2005, 6:04pm UTC](https://forum.kirupa.com/t/php-email-all-fields-in-one-line-of-email/84676 "2005-03-29T18:04:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![machine](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@machine](https://forum.kirupa.com/u/machine)\
**Post date:** [March 29, 2005, 6:04pm UTC](https://forum.kirupa.com/t/php-email-all-fields-in-one-line-of-email/84676/1 "2005-03-29T18:04:56Z")

</div>

[font=Arial]I’m using an email form in flash to php. Everything is working except one thing. When the message is received all the fields are in one line with no spaces. I would like them to be on separate lines. I believe this can be done using “  
\r” but I’m having no luck. I’ve searched the boards but can’t find a fix.[/font]

[font=Arial]Much thanks[/font]  
[font=Arial]Scotti[/font]

[font=Arial]

```auto
[/font][font=Arial]<?php
$sendTo = "[email="scotti@scottihill.com"]scotti@scottihill.com[/email]";
$subject = "Marconi Photography Website";
 
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"];
 
$name = $_POST["name"]."
";
$email = $_POST["email"]."
";
$phone = $_POST["phone"]."
";
$date = $_POST["date"]."
";
$how1 = $_POST["how1"]."
";
$how2 = $_POST["how2"]."
";
$message = $_POST["message"];
 
mail($sendTo. $subject. $headers. $name. $email. $phone. $date. $how1. $how2. $message);
?>

```

[/font]
