为什么My Flash AS2通过电子邮件发送的内容超过了请求的字段

时间:2014-01-22 14:59:22

标签: php forms flash email

此代码适用于为制服选择颜色和样式的Flash构建器。我只是将此.swf添加到网站中,我需要它将结果发送到网站电子邮件。我在脚本中添加了一行代码,因此它可以将结果“发布”到Godaddy Hosting附带的php处理程序中,并且正确地发送电子邮件但是在电子邮件中我获得的不仅仅是结果。我看到有关它所在网站的信息以及未选择的选项数组。这是代码(第26行是我添加post命令的地方):

stop();
//
function formcheck() {
    _root.youthRequest = check1.checked;
    _root.adultRequest = check2.checked;
    if (_root.theNamefirst == "" or _root.theNamelast == "" or _root.theEmail == "" or _root.thePhone == "" or _root.theState == "") {
    status_txt.text = "Input Required";
} else {
    _root.colorSortFn();
    if (_root.font_style != "block" && _root.font_style != "omega" && text2style == "shadow") {
        //temporary holders, to be reset later
        tmpVar = _root.text2style;
        tmpVar2 = _root.text2_colorVar;
        _root.text2style = "NA";
        _root.text2_colorVar = "";
    }
    sortColorTypeFn("insert");
    sortColorTypeFn("insert2");
    sortColorTypeFn("piping");
    sortColorTypeFn("piping2");
    sortColorTypePantsFn("insert1");
    sortColorTypePantsFn("insert2");
    sortColorTypePantsFn("piping");
    // send call
    _root.loadVariables("/submit-gear-builder.aspx", "POST");
    _root.loadVariables("/mailer.php", "POST");
    // reset variables
    if (_root.font_style != "block" && _root.font_style != "omega" && text2style == "shadow") {
        _root.text2style = tmpVar;
        _root.text2_colorVar = tmpVar2;
    }
    _root.colorSortFn();
    play();
}
}
//
_root.theNamefirst;
_root.theNamelast;
_root.theEmail;
_root.thePhone;
_root.theSchool;
_root.theState;
_root.youthRequest;
_root.adultRequest;
_root.theComments;
// 
function clearform() {
_root.theNamefirst = "";
_root.theNamelast = "";
_root.theEmail = "";
_root.thePhone = "";
_root.theSchool = "";
_root.theState = "";
_root.youthRequest = "";
_root.adultRequest = "";
_root.theComments = "";
check1.gotoAndStop(1);
check2.gotoAndStop(1);
status_txt.text = "";
//                                                                                       
// 
}
clearform();
send_btn.enabled = true;
// set tab order
button_btn.tabEnabled = true;
exit_btn.tabEnabled = true;
//
theNamefirst.tabIndex = 1;
theNamelast.tabIndex = 2;
theEmail.tabIndex = 3;
thePhone.tabIndex = 4;
theSchool.tabIndex = 5;
theState.tabIndex = 6;
check1.tabIndex = 7;
check2.tabIndex = 8;
theComments.tabIndex = 9;
button_btn.tabIndex = 10;
exit_btn.tabIndex = 11;

0 个答案:

没有答案