Maybe someone can help me with this ??
I dont have the php and need to write a new one but i am falling short
i beleive php for my email should be based on this script.. I have tried several times, but no luck. im getting confused with _roothotspot, tempform, and what heading im pulling from. there is about 7 different variables of information that needs to be emailed.
any help or guidance would be great
Thanks Shon
stop ();
root.hotSpot = "Residential";
phpPage = "thanks-residential.php";
var tempForm = new CAQForm("0xFF0000", root.clientEmail, phpPage);
tempForm.addToAddress(_root.toEmail);
tempForm.addText(nameTxt, "Name", true);
tempForm.addEmail(emailTxt, "Email", true);
phone1Txt.maxChars = 3;
phone2Txt.maxChars = 3;
phone3Txt.maxChars = 4;
tempForm.addPhone([phone1Txt, phone2Txt, phone3Txt], "Primary phone", true);
tempForm.addRadioList([radio1_radio, radio2_radio, radio3_radio, radio4_radio], "Loan Type", true);
tempForm.addText(loanAmtTxt, "Loan Amount", true);
tempForm.addComboBox(timecomboBox_cb, "Best time to call", true);
tempForm.addComboBox(statecomboBox_cb, "State", true);
var resultData = new LoadVars();
var resultListener = new Object();
resultListener.onLoad = function (success)
{
if (success)
{
} // end if
};
var submitButtonListener = new Object();
submitButtonListener.click = function (eventObj)
{
if (tempForm.validate())
{
resultData = tempForm.submitForm(false);
} // end if
};
validationButton.addEventListener("click", submitButtonListener);
action_btn.onRelease = function ()
{
if (_root.allowBackend == true)
{
if (tempForm.validate())
{
resultData = tempForm.submitForm(true);
} // end if
}
else
{
getURL(phpPage, "");
} // end else if
};