# Flash mail form issue

**URL:** <https://forum.kirupa.com/t/flash-mail-form-issue/284227>\
**Category:** Uncategorized\
**Created:** [March 16, 2009, 10:15pm UTC](https://forum.kirupa.com/t/flash-mail-form-issue/284227 "2009-03-16T22:15:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Captainkewl](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@Captainkewl](https://forum.kirupa.com/u/Captainkewl)\
**Post date:** [March 16, 2009, 10:15pm UTC](https://forum.kirupa.com/t/flash-mail-form-issue/284227/1 "2009-03-16T22:15:56Z")

</div>

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](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.
