Feedback form not working - Need help

I made a flash feedback form with using flash components and and php mail form, but this form is not working properly. I didn’t get any email

This is the code in action script layer


// import the required component classes.
import mx.controls.*;

// define the component instances on the Stage.

var name_txt:TextInput;
var email_txt:TextInput;
var phone_txt:TextInput;
var service_txt:ComboBox;
var dis_txt:TextArea;
var mail_bu:Button;
var name_label:Label;
var phone_label:Label;
var email_label:Label;
var des_label:Label;

//set color of labels
name_label.setStyle(“color”, “0xFFFFFF”);
name_label.setStyle(“fontWeight”, “bold”);
email_label.setStyle(“color”, “0xFFFFFF”);
email_label.setStyle(“fontWeight”, “bold”);
phone_label.setStyle(“color”, “0xFFFFFF”);
phone_label.setStyle(“fontWeight”, “bold”);
ser_label.setStyle(“color”, “0xFFFFFF”);
ser_label.setStyle(“fontWeight”, “bold”);
des_label.setStyle(“color”, “0xFFFFFF”);
des_label.setStyle(“fontWeight”, “bold”);

// set the tabbing order for the components
this.name_txt.tabIndex = 1;
this.email_txt.tabIndex = 2;
this.phone_txt.tabIndex = 3;
this.service_txt.tabIndex = 4;
this.dis_txt.tabIndex = 5;
this.mail_bu.tabIndex = 6;

// set the default form focus to the name_ti TextInput instance, and set the default button to the submit button.
focusManager.defaultPushButton = mail_bu;

//when the submit button is clicked, send the form values to the server using a ++ LoadVars +++ object.
var postBtnListener:Object = new Object(); = function(evt:Object) {
//if the name is blank, display an error message using the Alert component.
if (name_txt.text.length == 0) {
Selection.setFocus(name_txt);“Please enter your Name.”, “Hi”, Alert.OK);
return false;
// make sure the user has filled in either the email_address
if (email_txt.text.length == 0) {
Selection.setFocus(email_txt);“Please enter your Email Address”, “Hi”, Alert.OK);
return false;

if (phone_txt.text.length == 0){
    Selection.setFocus(phone_txt);"Please enter your Phone.", "Hi", Alert.OK);
    return false;

// make sure the comments_ta TextArea instance isn’t blank.
if (service_txt.selectedIndex < 1) {
Selection.setFocus(service_txt);“Please select the service.”, “Hi”, Alert.OK);
return false;
if (dis_txt.text.length == 0) {
Selection.setFocus(dis_txt);“Please enter your Message.”, “Hi”, Alert.OK);
return false;

// if all the required fields have been filled in, create a LoadVars object instance and populate it.
var send_lv:LoadVars = new LoadVars(); = name_txt.text; = email_txt.text; = phone_txt.text; = service_txt.text
send_lv.dis = dis_txt.text;
send_lv.onLoad = function(success:Boolean) {
// if the comments were sent to the server and you received a response, clear the form fields and display an Alert message.
if (success) {
name_txt.text = “”;
email_txt.text = “”;
phone_txt.text = “”;
dis_txt.text = “”;“Thank you for your comments.”, “Success”, Alert.OK);
} else {

// else you encountered an error while submitting to the server.“Unable to process your comments at this time.”, “Server Error”, Alert.OK);

// send the variables from Flash to the remote PHP template.
send_lv.sendAndLoad(“mail.php”, send_lv, “POST”);
this.mail_bu.addEventListener(“click”, postBtnListener);

// -------------------------------------------------------------------//

I don’t know whats the problem … I am attaching the PHP mail form for reference.

Any one knows about it please advice me whats the solution