I'm using the following script to compare two email addresses to make sure that they are the same. I want to ignore differences that are simply down to the visitor using capital letters in one field and lowercase in the second. I'm guessing the 'toLowerCase' (or 'toUpperCase') before the comparison is the way to do this, however, I've not been successful in getting this to work.
Can anyone advise where to incorporate the case change in the script?
ThanksPHP Code:function emailCheck(enquiryForm) {
if (enquiryForm._008_email2.value != enquiryForm._008_email.value) {
alert("The e-mail addresses that you entered do not match. Please amend. Thank you");
enquiryForm._008_email.focus(); return false;}
}






Bookmarks