validating an email address
Posted: Tue Jun 06, 2006 3:47 am
Hi
my current email validation will not allow valid emails in the format of name@domain.coop and name@domain.info even though they are valid emails.#
My code looks like this at the moment:
any ideas what to change to allow these email addresses?
thanks in advance
my current email validation will not allow valid emails in the format of name@domain.coop and name@domain.info even though they are valid emails.#
My code looks like this at the moment:
Code: Select all
eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $emailthanks in advance