Code: Select all
bSubmit.onRelease = function()
{
email();
}
function email()
{
var sMessage = "Name: " + tName.text + "\nE-mail: " + tEmail.text + "\Subject: " + tSubject.text + "\nMessage: " + tMessage.text;
lvSend = new LoadVars();
lvReply = new LoadVars();
lvSend.msg = sMessage;
lvSend.address = "enquiry@ittrainingtorbay.co.uk";
tName.text = "Sending Message…";
tEmail.text = "";
tSubject.text = "";
tMessage.text = "";
lvReply.onLoad()
{
tName.text = "Message Sent";
}
lvSend.sendAndLoad('mail.php', lvReply, 'POST');
}