# Emailing form to bounce back to swf(?)

**URL:** <https://forum.kirupa.com/t/emailing-form-to-bounce-back-to-swf/198907>\
**Category:** Uncategorized\
**Created:** [August 29, 2006, 4:03pm UTC](https://forum.kirupa.com/t/emailing-form-to-bounce-back-to-swf/198907 "2006-08-29T16:03:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![htrain26](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@htrain26](https://forum.kirupa.com/u/htrain26)\
**Post date:** [August 29, 2006, 4:03pm UTC](https://forum.kirupa.com/t/emailing-form-to-bounce-back-to-swf/198907/1 "2006-08-29T16:03:51Z")

</div>

I’m having some trouble getting a froms info to bounce back to the flash so that I can let the veiwer know that their info has been sent. — I am sending the info to a php file–

I have this at the buttom of my code–  
blah, blah, blah  
formData.sendAndLoad(“email\_request.php”, formData, “Post”);

I have found some code that reads—  
formData.sendAndLoad(“email\_request.php”, retData, “Post”);

retData.onLoad = function(success)  
{  
if(success)  
{  
if(retData.retVal == “okay”)  
{  
gotoAndStop(18);  
}  
else  
{  
//Handle error  
}  
}  
}  
}

when i put this in and switch the "formData to “retData” it doesn’t send at all.

In my php code I have—

\<?  
include ‘init.php’;

mail ("xxxxxxx@email.com", “All Type Accounting Contact Us Form”,  
"  
The following is input from the request info page.  
Please respond to $name at $email in 2-3 business days.

-----------------------------Basic Information----------------------

name: $name1  
email: $email  
phone: $phone  
address: $address  
description: $description  
size1: $size1  
price: $price

Please contact $name immediatly via phone.","$name  
");

if(mail(success))  
{  
print &retVal = “okay”;  
}  
else  
{  
print &retVal = “error”;

}

?\>

Any suggestions???

sorry such a long post.

thanks,

hutch
