I have a booking page set up on this site: http://www.oasisbanddc.com
It’s 100% functional, meaning I receive the emails and all the content. The issue is that after the user clicks the send button, the page just sits still rather than going to the “thank you” message…
send btn code
on (release) {
var sendLV:LoadVars = new LoadVars();
sendLV.name = name;
sendLV.phone = phone;
sendLV.cellPhone = cellPhone;
sendLV.emailbk = emailbk;
sendLV.month = monthin.selectedItem.label;
sendLV.date = datein.selectedItem.label;
sendLV.year = yearin.selectedItem.label;
sendLV.month2 = monthin2.selectedItem.label;
sendLV.date2 = datein2.selectedItem.label;
sendLV.year2 = yearin2.selectedItem.label;
sendLV.locationin = locationin.selectedItem.label;
sendLV.typein = typein.selectedItem.label;
sendLV.musictypein = musictypein.selectedItem.label;
sendLV.guestnum = guestnum.selectedItem.label;
sendLV.timefrom = timefrom.selectedItem.label;
sendLV.timeto = timeto.selectedItem.label;
sendLV.street1 = street1;
sendLV.street2 = street2;
sendLV.city = city;
sendLV.statein = statein.selectedItem.label;
sendLV.zipcode = zipcode;
sendLV.message = message;
sendLV.sendAndLoad("email.php", sendLV, "post");
sendLV.onLoad = function(success) {
** if (success) {
trace("file loaded");
if (this.mailSent == "ok") {
_root.gotoAndStop(3);
} else {
trace("mail could not be sent!");
}
} else {
trace("couldn't load the file");
}
};
}**
and, obviously, on frame three is a message that says:
Your email has been sent.
You will be contacted via phone and/or email as soon as possible.
Thank You!