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