I thought this would be an easy fix, but I was wrong. Since last posting I gave up on php and moved to Cold fusion, and now I am back at Php. I am getting absolutely nothing.
Here is the code for Flash and Php:
stop();
//----------------<LoadVars>------------------\\
var myLoadVars:LoadVars = new LoadVars();
receive_lv.onLoad = function(success:Boolean){
if(success){
myText_txt.text = "Thank You";
gotoAndPlay("sent")
}
gotoAndPlay("error")
}
//----------------</LoadVars>------------------\\
this.invisible_Btn.onRelease = function () {
gotoAndPlay(main);
}
//----------------<Submit Button>------------------\\
this.contactForm.submit_btn.onRelease = function () {
trace("Button is working");
if (contactForm.name_txt.text == "" || contactForm.email_txt.text == "" || contactForm.comments_txt == "") {
gotoAndPlay("error");
trace("Error page working")
} else {
myLoadVars.Name = contactForm.name_txt.text;
myLoadVars.Email = contactForm.email_txt.text;
myLoadVars.Comments = contactForm.comments_txt.text;
myLoadVars.Track = contactForm.track_cb.selectedItem.label
//myLoadVars.sendtoemail = Sendtoemail;
// myLoadVars.redirect = Redirect;
//myLoadVars.subject = Subject;
trace(myLoadVars.Name);
trace(myLoadVars.Email);
trace(myLoadVars.Comments);
trace(myLoadVars.Track);
myLoadVars.send("http://www.allinnia.com/email.php", "POST");
}
}
PHP:
<?php
$to =
'travis@allinnia.com';
$subject = 'Musical Critique';
$message = $_POST["$Name\n\n"];
$message = $_POST["$Email\n\n"];
$message = $_POST["$Comments\n\n"];
$message = $_POST["$Track\n\n"];
$headers = 'From: Allinnia.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
echo "success";
?>
This actually gets me a mail message with no content. The headers are correct, but the message is empty.
If you wanna see the flash in failure action....
http://www.allinnia.com/test.html
This my friends is garbage.
