嗨,我期待的驗證後,發送形式的細節在電子郵件,但我不知道我怎麼把在我想派繼承人的細節我的代碼如何在Javascript
樣本警報if(compName)
{
document.getElementById('country').focus();
compName=true;
if(compContry)
{
document.getElementById('Phone').focus();
compContry=true;
if(compphone)
{
document.getElementById('email').focus();
compphone=true;
if(compemail)
{
//this is where i want to send details of form in email
alert("Your Details Are Sent ");
compemail=true;
}
else
{
document.getElementById('email').focus();
compemail=false;
}
}
else
{
document.getElementById('Phone').focus();
compphone=false;
}
}
else
{
document.getElementById('country').focus();
compContry=false;
}
}
else
{
document.getElementById('username').focus();
compName=false;
}
}
問題不是那麼清楚。 – 2011-04-27 08:15:59
你的意思是你想用JS發送郵件嗎? – JohnP 2011-04-27 08:16:09