PDA

View Full Version : Flash / Php message text trouble in mail form



Sgt_Jim
February 11th, 2005, 07:34 AM
I have used the flash php email from tutorial and its working a treat. I have modified the php to send the emails etc. to my address and the emails are getting through. However the message text is not coming through. I only get blank emails. I'm only starting to learn php so has someone got an answer for this? Thanks in advance

Here's the php script:

<?php
$sendTo = "adriancorcoran21@yahoo.co.uk";
$subject = "Email from akphotos";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$body = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>

Sgt_Jim
February 11th, 2005, 07:43 AM
Nevermind I caught the problem. The $message variable wasn't defined in the source files. It was written as $body. The source files available for download should be fixed.


Adrian