If you are thinking of adding a confirmation of e-mail address to the front-end registration pages of your store e.g the Checkout billing page or the customer account registration, the little snippets below could be of use to you
For the Checkout billing page
1. Locate the magento checkout billing page (billing.phtml) which can be found in app/design/frontend/default/
2. Add code 1 below where situable;
Code 1
<div class="field">
<label for="billing:confirm_email" class="required"><em>*</em><?php echo $this->__('Confirm Email Address') ?></label>
<div class="input-box">
<input type="text" name="billing[confirm_email]" title="<?php echo $this->__('Confirm Email') ?>" id="billing:confirm_email" class="input-text required-entry validate-cemail" />
</div>
For the validation of this email confirmation field with the actual email field
3. Locate the Javascript file which Magento uses for validation (validation.js) in /js/prototype
4. Add code 3 where suitable e.g immediately after this line(code 2) in validation.js
Code 2
return !(pass.length < 7);
}],
Code 3
['validate-cemail', 'Please make sure your emails match.', function(v) {
var conf = $$('.validate-cemail')[0];
var pass = false;
if ($('email')) {
pass = $('email');
}
var emailElements = $$('.validate-email');
for (var i = 0; i < emailElements.size(); i++) {
var emailElement = emailElements[i];
if (emailElement.up('form').id == conf.up('form').id) {
pass = emailElement;
}
}
if ($$('.validate-admin-email').size()) {
pass = $$('.validate-admin-email')[0];
}
return (pass.value == conf.value);
}],
Then that should just do exactly what you want.
For the Customer Account Registration page
1. Locate the magento account register page ,register.phtml in
app/design/frontend/
2. Include code 4 where suitable
Code 4
<div class="field">
<label for="confirm_email" class="required"><em>*</em><?php echo $this->__('Confirm Email Address') ?></label>
<div class="input-box">
<input type="text" name="confirm_email" title="<?php echo $this->__('Confirm Email') ?>" id="confirm_email" class="input-text required-entry validate-cemail" />
</div>
</div>
After this, you should have another field on your registration page which can be subjected to any styling you need to do, most importantly when styling do not change the tag id’s and class names, in a situation where you need to change them, you must also change the javascript selectors accordingly.
I hope this works for you.

Hi,
I have tried the code as you said it 1.4 but it does not work even if I keep the correct email in both the fields its says please enter the correct email.
Please help me what I should do.
Regards,
Srikanth Thandra
Hello It is working fine.
But I can’t find code2 in validation.js. I have set after
['validate-emailSender', 'Please use only visible characters and spaces.', function (v) {
return Validation.get('IsEmpty').test(v) || /^[\S ]+$/.test(v)
}],
on line no 515
thanks it works
I’ve attempted to use your code from here and I put code 3 in place after code 2 and then added code 4 to the register template.
When I attempt to use it I alwasy get a validation error even though both emails are identical. it’s a standard Magento 1.7.2 install. Can you suggest why this doe snot work now please?
Hi, this worked for me on 1.7.2
I have one question: the JavScript says “Please make sure your emails match.”
Now I’ve put that in my locale Mage_Core.cvs but that didn’t work. Also in Mage_Checkout it didn’t work.
I guess I doesn’t work because it is JavaScript, so how can I translate it automaticly without changing the js itselfe? Thx.