Hi all.
I have followed a tutorial off this site for creating a flash/php based contact form.
I am having trouble at the recieving end of this. (where i receive the email)
http://www.kirupa.com/developer/actionscript/flash_php_email.htm (tutorial)
heres an example of the form. all the var name’s are correct and work etc.
heres the php script i am using.
<?php
$sendTo = “myemail@hotmail.com”;
$subject = “Maximizer Demo”;
$headers = "From: " . $_POST[“name”];
$headers .= “<” . $_POST[“email”] . ">
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-Path: " . $_POST[“email”];
$message = $_POST[“message”];
mail($sendTo, $subject, $message, $headers);
?>
heres where i need some help. when i receive the email it looks like this. instead of just having my name and email in the ‘from’ section and company name in the ‘body’
it includes the formatting of the input text in from flash.
this is still usefull but is a hassle trying to look through that to find the name etc.
does anyone know how i can resolve this???
(only include what gets put into the text fields on the
website not the formatting aswell)
I hope that isnt too confusing and is understandable.
Any Help would be much appreciated as i need this to create a feedback kinda form on a website.
Thankyou
Ryan