• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Entering your email twice on sign-up forms

Contributor ,
Jan 23, 2009 Jan 23, 2009

Copy link to clipboard

Copied

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.
TOPICS
Advanced techniques

Views

408

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 23, 2009 Jan 23, 2009

Copy link to clipboard

Copied

> 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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jan 23, 2009 Jan 23, 2009

Copy link to clipboard

Copied

LATEST
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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation