You really don't want to publish your email address in an open forum. You will get tons of spam.
To answer your question, you need an onsubmit event for your form. About the simplest would be something like:
Code:
<form action="whatever"
onsubmit="if(this.elements.email.value === this.elements.ConfirmEmail.value){
return true;
}alert('Email and Confirm Email fields don\'t match');return false;">
Insert the highlighted into your form tag.
Notes: I used 'email' for the name of the email input. In your post you have it as 'emai'. But I'm thinking that was a typo. Whatever it's name is though, it should match up. Make sure that it does.
Also, this will be of no use if the user has javascript disabled or unavailable. If you are processing the results of this form on the server side, a server side fall back should also be used.
Bookmarks