:hitman: Hi All :hitman:
I am in a pickle. I need to build a flash form that will send back the variable data entered by the customer. I used the Script below and it sends back the From:, To:, Subject just fine, but I only get the ““message”” data back from the form. What I need to do is add about 20 more fields, see the remarks in the PHP script below. Any help would be greatly appreciated.
**PHP Script: :sen: **
<?php
$sendTo = “MyEmail@MyEmail.com”;
$subject = “Online Booking Request”;
$headers = "From: " . $_POST[“name”];
$headers .= “<” . $_POST[“email”] . ">
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-Path: " . $_POST[“email”];
$message = $_POST[“message”];
$Address = $_POST[“address”]; //<< Need to add more fields like this, city, state etc… and have the values returned in the email>>//
mail($sendTo, $subject, $message, $headers);
?>
**Flash Button Code::sen: **
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables(“http://www.MyWesiteAddess.com/email.php”, “POST”);
}