double email entry validation

awdesign 11 Feb, 2009
how can we use "double email entry validation" with chronoform.
Basically I want to put two email fields and user needs to type his/her email twice and if user does not type correctly his email address on the second field, system should give warning on the page.
Thanks,
Lewis
GreyHead 11 Feb, 2009
Hi Lewis,

Adding the second field is simple enough, then you need some custom, validation to check they are identical. I recall that I posted something like that for password fields a month or two back.

Bob
koe1974 11 Feb, 2009
I used the following code

<?php
if(($_POST['email_add']) != ($_POST['email_ver']))
return 'Sorry, your email addresses do not match.';
?>


Paste that in the "Enable Server Side Validation" and select "Yes".
Make sure the fields match the assigned field values of your form.
This topic is locked and no more replies can be posted.