I’m trying to confirm that the email address and confirm email address are the same. I have enter this code but it always come back with the error message even when the email and confirm email address are the same.
<script language=”javascript” type=”text/javascript”>
function Compare(Email1, Email2)
{if (FrontPage_Form1.Email1.value == FrontPage_Form1.Email2.value)
{return true;}
else
{ alert(“Your Email Address and Confirm Email Address must be the same.”);
return false;}
}
</script>
</head>
in the body i have the onsubmit:
<FORM onsubmit =”Compare (Email1, Email2)” language=”JavaScript” METHOD=”POST” ACTION=”–WEBBOT-SELF–” name=”FrontPage_Form1″>
It should compare the two to make sure they are the same and move on to creating the email and confirmation page. If I don’t check the two email address just send the email and create the confirmaiton page everything works. Well I mean they can enter two different email but the email goes out and the confirmation page is created.
PLEASE Help. This is my first page.