1. u wrote:
gatherForm.sendAndLoad("http://www.bodyshopfitnesscenter.com/email.ph p", receiveForm, "POST"); -> there's a space between "email.ph" and "p".
If you copy paste the code from your flash file, then better remove the space.
2. is
http://www.bodyshopfitnesscenter.com/email.php actually sending emails? try it with a simple html form with action="http://www.bodyshopfitnesscenter.com/email.php"
which has 3 input texts named : name, email, phone ... and a submit button.
3. You are sending to php:
gatherForm.email_to = "eric.shomer@gmail.com";
gatherForm.visitor_comments = msg_txt.text;
gatherForm.visitor_name = name_txt.text;
gatherForm.visitor_email = email_txt.text;
gatherForm.visitor_phone = phone_txt.text;
- gatherForm.email_to = "eric.shomer@gmail.com";
- gatherForm.visitor_comments = msg_txt.text;
- gatherForm.visitor_name = name_txt.text;
- gatherForm.visitor_email = email_txt.text;
- gatherForm.visitor_phone = phone_txt.text;
but the php code expect only name, email and phone - > see $_POST["name"], $_POST["email"], $_POST["phone"]
so either you change the php files to get the correct posted variables name, or you change the flash file
4. if the php and swf files are not in the same domain, there might be chanches the email will not be send, since the smtp server may be restricted to the same domain. If they are in the same domain, then better use relative path instead of the absolute path: "http://www.bodyshopfitnesscenter.com/email.php"
5. if you want to display the success/fail of the send message, then you'll have to actually send something back to flash, using:
echo "response=passed"; // -> if success
or
echo "response=failed"; // -> if fail
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”