Flash form and echo from the php

I am trying to make this form work, but I think I am just missing a little bit.

I have the following AS:
var send_lv = new LoadVars();
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
this.tf_showAlertMsg.text = “Thank you for sending us an email”;
} else {
this.tf_showAlertMsg.text = “Email did not go through”;
}
};

send_lv.Name = tName;
send_lv.FromEmail = tEmail;
send_lv.Subject = tSubject;
send_lv.Comments = tMsg;
send_lv.Newsletter = tCheckBox;

send_lv.status = “”;
send_lv.sendAndLoad(“php/sendContact.php”,result_lv,“Post”);
this.showAlertMsg(“Sending…”);

My php works fine, except I think I need to change the echo, but I don’t know what to.
This is what I have now:
echo “&Status=Your quote request has been sent.”;

What do I need to change?

Thanks a lot for the help!

You didn’t say what was wrong with your existing implementation. please explain what you want.

[quote=brian914;2325404]I am trying to make this form work, but I think I am just missing a little bit.

I have the following AS:
var send_lv = new LoadVars();
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
this.tf_showAlertMsg.text = “Thank you for sending us an email”;
} else {
this.tf_showAlertMsg.text = “Email did not go through”;
}
};

send_lv.Name = tName;
send_lv.FromEmail = tEmail;
send_lv.Subject = tSubject;
send_lv.Comments = tMsg;
send_lv.Newsletter = tCheckBox;

send_lv.status = “”;
send_lv.sendAndLoad(“php/sendContact.php”,result_lv,“Post”);
this.showAlertMsg(“Sending…”);

My php works fine, except I think I need to change the echo, but I don’t know what to.
This is what I have now:
echo “&Status=Your quote request has been sent.”;

What do I need to change?

Thanks a lot for the help![/quote]

Sorry!
I can’t seem to get the result_lv.onLoad function to work. It does not seem to get triggered. What does my echo have to see for the result_lv.onLoad to report a success?

Thanks a lot!