Email validation

Discussion in 'Troubleshooting' started by GoldRoo, May 24, 2008.

  1. GoldRoo

    GoldRoo New Member

    Joined:
    May 18, 2005
    Messages:
    39
    Hi folks

    As part of the signup process, amember does some validation checks on the email address.
    However, the validation is not working for the new .travel domain names.
    I guess I need to change something in some file somewhere to allow email addresses to finish in a 6 letter extension.

    Anybody's got any ideas?

    Thanks
  2. GoldRoo

    GoldRoo New Member

    Joined:
    May 18, 2005
    Messages:
    39
    Got an answer from aMember support:

    You can edit /amember/common.inc.php file, replace^
    if (!preg_match('/\.([a-zA-Z]{2,5})$/',$email) )
    to:
    if (!preg_match('/\.([a-zA-Z]{2,6})$/',$email) )
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    wwwizzard, thank you for posting the answer here.. a lot of times answers get lost in the vapor and the same question is asked again and again.

    Thanks for sharing.

Share This Page