# Flash form and echo from the php

**URL:** <https://forum.kirupa.com/t/flash-form-and-echo-from-the-php/260173>\
**Category:** flash\
**Created:** [May 13, 2008, 4:51am UTC](https://forum.kirupa.com/t/flash-form-and-echo-from-the-php/260173 "2008-05-13T04:51:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian914](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@brian914](https://forum.kirupa.com/u/brian914)\
**Post date:** [May 13, 2008, 4:51am UTC](https://forum.kirupa.com/t/flash-form-and-echo-from-the-php/260173/1 "2008-05-13T04:51:29Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [May 13, 2008, 7:43am UTC](https://forum.kirupa.com/t/flash-form-and-echo-from-the-php/260173/2 "2008-05-13T07:43:58Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![brian914](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@brian914](https://forum.kirupa.com/u/brian914)\
**Post date:** [May 13, 2008, 1:43pm UTC](https://forum.kirupa.com/t/flash-form-and-echo-from-the-php/260173/3 "2008-05-13T13:43:34Z")

</div>

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!
