Forum


email address problem - can't be .co.uk
geezer wrote
at 7:54 PM, Monday November 27, 2006 EST
When registering I've found that my .co.uk email address was not being accepted by the form, so I've had to give a ficticious address with a .com extension to be accepted.

Please could you make the form allow non .com addresses so I could enter my usual details and register properly.

Thanks,
Martin

Replies 1 - 2 of 2
Ryan wrote
at 10:23 PM, Monday November 27, 2006 EST
It's because of the two dots in the domain. It fails the regular expression.

I'll look into getting this fixed
gratjim wrote
at 11:15 PM, Monday November 27, 2006 EST
If that can help...

function is_valid_email($email)
{
$atom = '[-a-z0-9!#$%&\'*+/=?^_`{|}~]'; // allowed characters for part before "at" character
$domain = '([a-z]([-a-z0-9]*[a-z0-9]+)?)'; // allowed characters for part after "at" character

$regex = '^' . $atom . '+' . // One or more atom characters.
'(\.' . $atom . '+)*'. // Followed by zero or more dot separated sets of one or more atom characters.
'@'. // Followed by an "at" character.
'(' . $domain . '{1,63}\.)+'. // Followed by one or max 63 domain characters (dot separated).
$domain . '{2,63}'. // Must be followed by one set consisting a period of two
'$'; // or max 63 domain characters.
return eregi($regex, $email);
}
GPokr - Free Texas Holdem Poker
GPokr is a free texas holdem poker game that is played in monthly competitions.
CREATED BY RYAN © 2006
RECOMMEND
GAMES
GPokr
Texas Holdem Poker
KDice
Online Strategy
XSketch
Online Pictionary