Здравствуйте. У меня такой вопрос. есть код скрипта для кнопки "Отправить" и есть код пхп файла. Но почему то письма приходят пустыми.
Код во флеше:

Код AS1/AS2:
label1 = "Your Name:";
label2 = "Telephone:";
label3 = "E-mail Address:";
label4 = "Telephone:";
label5 = "Subject";
label6 = "Message:";
//
countField = 6;
clearField();
//
var arrayLabel:Array = new Array();
for (i=1; i<countField+1; i++) {
txtField = this["txtField"+i];
txtField.index = i;
arrayLabel[i] = this["label"+i];
txtField.tabIndex = i;
txtField.onSetFocus = function() {
if (this.text == arrayLabel[this.index]) {
this.text = "";
}
};
txtField.onKillFocus = function() {
if (this.text == "") {
this.text = arrayLabel[this.index];
}
};
}
//
function clearField() {
txtField1.text = label1;
txtField2.text = label2;
txtField3.text = label3;
txtField4.text = label4;
txtField5.text = label5;
txtField6.text = label6;
}
//
// button CLEAR
btnClear.onRollOver = function() {
this.gotoAndPlay("over");
};
btnClear.onRollOut = btnClear.onReleaseOutside=function () {
this.gotoAndPlay("out");
};
btnClear.onRelease = function() {
clearField();
};
//
// button SEND
btnSubmit.onRollOver = function() {
this.gotoAndPlay("over");
};
btnSubmit.onRollOut = btnSubmit.onReleaseOutside=function () {
this.gotoAndPlay("out");
};
btnSubmit.onRelease = function() {
if (_root.pages.page5.contactform.txtField1.text == label1 ||
_root.pages.page5.contactform.txtField2.text == label2 ||
_root.pages.page5.contactform.txtField3.text == label3 ||
_root.pages.page5.contactform.txtField4.text == label4 ||
_root.pages.page5.contactform.txtField5.text == label5 ||
_root.pages.page5.contactform.txtField6.text == label6) {
gotoAndStop(3);
} else {
_root.pages.page5.contactform.loadVariables("email.php", "POST");
gotoAndStop(2);
}
};
stop();
Код ПХП:

Код:
<?
$destination="usk_88@bk.ru";
$name=$_POST['name1'];
$email=$_POST['email'];
$company=$_POST['company'];
$from = 'sake8807@mail.ru';
$phone=$_POST['number'];
$mes=$_POST['message1'];
$header="From: $from\n";
$mes="Name: $name\n
Company: $company\n
Phone: $phone\n
Email: $email\n
Comments: $mes\n";
mail($destination,$mes,$header);
Кто-нибудь подскажите как сделать?