I am working with a flash template (I hate templates!!). I had no choice on this one. Anyways, there is a contact section and I am trying to make it work via PHP. This is the actionscript for the submit button:
onClipEvent(load){this.t.v = _root.contacts_txt9;}
on (rollOver) {this.gotoAndPlay(“s1”);}
on (rollOut) {this.gotoAndPlay(“s2”);}
on(release){
_parent.loadVariables(“mail.php”, “POST”);
_parent._parent.gotoAndStop(2);
}
when I click on the contact form “Your Name” text field (it is input text), it has a name of t1. For the “Your Email” it has t3 and for “message” it has t4.
I am not sure how to alter the PHP to correctly make this work.
The URL for my .fla is http://kmkwebdevelopment.com/homeadvisor/homeadvisor2copy.fla
and for the PHP, this is what I have so far.
<?php
$sendTo = "kbzr.k1@gmail.com";
$subject = “My Flash site reply”;
$headers = “From: " . $_POST[“t1”] .” " . $_POST[“t3”] .">
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-path: " . $_POST[“email”];
$message = $_POST[“t4”];
mail($sendTo, $subject, $message, $headers);
?>
Thanks,
Kris.