Flash and PHP email form, need help
Posted: Mon Aug 28, 2006 2:59 pm
Heya,
I have a flash form that uses PHP to send the data to an email, but it causes all of the data to display on the same line with no spaces when recieved via email, can anyone help? Thanks!
Code:
I have a flash form that uses PHP to send the data to an email, but it causes all of the data to display on the same line with no spaces when recieved via email, can anyone help? Thanks!
Code:
Code: Select all
<?php
$sendTo = "email@email.com";
$subject = "Contact Form from Cabinet Source Website";
$headers = "From: " . $_POST["name"] ." ". $_POST["phone"] . "<" . $_POST["comments"] .">\r\n";
$headers .= "Reply-To: " . $_POST["name"] . "\r\n";
$headers .= "Return-path: " . $_POST["name"];
$message = $_POST["comments"];
mail($sendTo, $subject, $message, $headers);
?>