# Help Me Before I Hang Myself

**URL:** <https://forum.kirupa.com/t/help-me-before-i-hang-myself/233616>\
**Category:** programming\
**Created:** [July 25, 2007, 2:09pm UTC](https://forum.kirupa.com/t/help-me-before-i-hang-myself/233616 "2007-07-25T14:09:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcaira](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rcaira](https://forum.kirupa.com/u/rcaira)\
**Post date:** [July 25, 2007, 2:09pm UTC](https://forum.kirupa.com/t/help-me-before-i-hang-myself/233616/1 "2007-07-25T14:09:20Z")

</div>

: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](mailto: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](http://www.MyWesiteAddess.com/email.php)”, “POST”);  
}
