bitingsharx
05-20-2006, 05:58 PM
Actionscript:
stop();
// -------------------<send form LoadVars>------------------- \\
var gatherForm:LoadVars = new LoadVars();
function sendForm() {
gatherForm.visitor_name = this.userName.text;
gatherForm.visitor_phone = this.userPhone.text;
gatherForm.visitor_email = this.userEmail.text;
getherForm.visitor_message = this.userMessage.text;
gatherForm.sendAndLoad("/mail.php", gatherForm, "POST");
trace(this.userName.text);
trace(this.userPhone.text);
trace(this.userEmail.text);
trace(this.userMessage.text);
}
// -------------------</send form LoadVars>------------------- \\
_global.style.setStyle("fontFamily", "Bimini");
_global.style.setStyle("fontWeight", "normal");
_global.style.setStyle("embedFonts", true);
_global.style.setStyle("fontSize", 17);
_global.style.setStyle("color", 0x000000);
//--------------------<submit button AS>---------------------\\
this.submitBtn.btnLabel.autoSize = "center";
this.submitBtn.btnLabel.text = "SUBMIT";
this.userName.tabIndex = 1;
this.userPhone.tabIndex = 2;
this.userEmail.tabIndex = 3;
this.userMessage.tabIndex = 4;
// onRollOver
this.submitBtn.onRollOver = function() {
submitBtn.gotoAndStop (2);
}
// onRollOut
this.submitBtn.onRollOut = function() {
submitBtn.gotoAndStop (1);
}
// onRelease
this.submitBtn.onRelease = function() {
if (this.userName.text == "" || this.userPhone.text == "" || this.userEmail.text == ""|| this.userMessage.text == "") {
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
}
//--------------------</submit button AS>---------------------\\
I've tried to sendmail via .pl no luck...send mail via .asp no luck...send mail via .php...no luck...please help!
stop();
// -------------------<send form LoadVars>------------------- \\
var gatherForm:LoadVars = new LoadVars();
function sendForm() {
gatherForm.visitor_name = this.userName.text;
gatherForm.visitor_phone = this.userPhone.text;
gatherForm.visitor_email = this.userEmail.text;
getherForm.visitor_message = this.userMessage.text;
gatherForm.sendAndLoad("/mail.php", gatherForm, "POST");
trace(this.userName.text);
trace(this.userPhone.text);
trace(this.userEmail.text);
trace(this.userMessage.text);
}
// -------------------</send form LoadVars>------------------- \\
_global.style.setStyle("fontFamily", "Bimini");
_global.style.setStyle("fontWeight", "normal");
_global.style.setStyle("embedFonts", true);
_global.style.setStyle("fontSize", 17);
_global.style.setStyle("color", 0x000000);
//--------------------<submit button AS>---------------------\\
this.submitBtn.btnLabel.autoSize = "center";
this.submitBtn.btnLabel.text = "SUBMIT";
this.userName.tabIndex = 1;
this.userPhone.tabIndex = 2;
this.userEmail.tabIndex = 3;
this.userMessage.tabIndex = 4;
// onRollOver
this.submitBtn.onRollOver = function() {
submitBtn.gotoAndStop (2);
}
// onRollOut
this.submitBtn.onRollOut = function() {
submitBtn.gotoAndStop (1);
}
// onRelease
this.submitBtn.onRelease = function() {
if (this.userName.text == "" || this.userPhone.text == "" || this.userEmail.text == ""|| this.userMessage.text == "") {
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
}
//--------------------</submit button AS>---------------------\\
I've tried to sendmail via .pl no luck...send mail via .asp no luck...send mail via .php...no luck...please help!