hi
i have this script that will send text from a text box to a email address but been trying to get it to send the selected text from a combo box anyone have any idea how i can do this? thanks...
.as code:
Code:
var sndMailLsnr:Object = new Object();
sndMailLsnr.click = function()
{
if(sndrName.text != " && sndrEmail.text != " && rcvrName.text != " && rcvrEmail.text != ")
{
var sndrVar:LoadVars = new LoadVars();
var rcvrVar:LoadVars = new LoadVars();
sndrVar.sndrName = sndrName.text;
sndrVar.sndrEmail = sndrEmail.text
sndrVar.rcvrName = rcvrName.text;
sndrVar.rcvrEmail = rcvrEmail.text;
sndrVar.msgID = _parent.msgID;
rcvrVar.onLoad = function(success)
{
if(success)
{
if(rcvrVar.output == "Mail Sent")
trace(rcvrVar.output);
stField.htmlText = "Mail sent successfully";
}
else
{
stField.htmlText = "Mail cannot be send.";
}
}
}
else
{
stField.htmlText = "Please fill all the required fields.";
}
sndrVar.sendAndLoad("sendmail.php",rcvrVar,"GET");
}
sndMail.addEventListener("click",sndMailLsnr);