Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question confirm email fields

    I have the form validation thing down, but for some reason I can't seem to get a validate for 2 identical fields as in re-entering your email address to confirm you didn't drop a typo in there. I would like to do this without loading an external .js by the way...Can anyone kick some ideas my way??
    Last edited by hypewerx; 01-24-2006 at 02:46 AM.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,966
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Code:
    if (f.email.value != f.emailConfirm.value){
       alert("Email address must be the same.");
       return false;
    }
    where "f" is the form reference and "email" and "emailConfirm" are the email field names.

  • #3
    New to the CF scene
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    wow, that was easy. Thanks for the help


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •