Form Tools
same_as email comparison - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8)
+--- Forum: Form Validation: JS + PHP (https://forums.formtools.org/forumdisplay.php?fid=18)
+--- Thread: same_as email comparison (/showthread.php?tid=253)



same_as email comparison - bwaye - Aug 21st, 2009

Believe it or not. As long as I have been coding sites I have never done a field comparison and I cannot get it work correctly. I am using FT java validation and the code is as follows:

rules.push("required,email,Please enter your email address.");
rules.push("valid_email,email,Please enter a valid email address.");
rules.push("same_as,email2,Please Check your Email Address.");

the fields in question are:

email
email2


RE: same_as email comparison - Ben - Aug 21st, 2009

Heya,

No problem - just tweak your last line to this:

Code:
rules.push("same_as,email,email2,Please Check your Email Address.");

- Ben


RE: same_as email comparison - bwaye - Aug 25th, 2009

(Aug 21st, 2009, 8:10 PM)Ben Wrote: Heya,

No problem - just tweak your last line to this:

Code:
rules.push("same_as,email,email2,Please Check your Email Address.");

- Ben

THANKS! should have known!


RE: same_as email comparison - Quinn Sauer - Sep 16th, 2021

I often send various business emails to clients because of being a freelancer. Recently, I noticed that some of my emails were lost owing to a technical error. That's why after getting thesis writing service online, I decided to get some information from such forum posts to rectify this issue.