Hi Japanchick,
Found your problem in the javascript error checking code, I cut-n-pasted your code into my contactus.tpl, and the invalid email error message came up, I then copied the javascript code from my working "contactus.tpl" over your javascript code, and it worked ok.
cut-n-paste the following code into
contactus.tpl, to overwrite the existing javascript error checking code.
Quote:
{* $Id: contactus.tpl,v 1.15 2002/09/12 10:25:45 verbic Exp $ *}
{literal}
<script>
function checkEmailAddress(field) {
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.go v)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
return true;
} else {
alert("E-mail address is invalid! Please correct");
field.focus();
field.select();
return false;
}
}
</script>
{/literal}
|
Regards,