Skip to main content
Inspiring
January 23, 2009
Question

Entering your email twice on sign-up forms

  • January 23, 2009
  • 1 reply
  • 492 views
I have a sign-up form for membership for a client, and they want it so the user enters their email address twice (in case they make a typo). This is such a common functionality, is there any on-page validation in CF or simple technique for this that doesn't involve me manually handling this in my error-checking on the submit page? Any help would be appreciated.
This topic has been closed for replies.

1 reply

Inspiring
January 23, 2009
> the user enters their email address twice (in case they make a typo)

That just involves comparing two strings and verifying they are the same.

> or simple technique for this that doesn't involve me manually handling
> this in my error-checking on the submit page

What is wrong with validating this on your submit page? A line or two of javascript could compare the two values on the client side. But you should not depend on javascript alone. It can be disabled.
Inspiring
January 23, 2009
Client side options with Javascript:

Spry
http://labs.adobe.com/technologies/spry/samples/validationwidgets/TextfieldValidationSample.html

Ben Keen's Really Simple Validation
http://www.benjaminkeen.com/software/rsv/

I also agree with cfSearching, you should always validate on the server in case client side validation is bypassed.