Jump to content

Archived

This topic is now archived and is closed to further replies.

jasonc

validating email not correct

Recommended Posts

the following does not seem to work correctly!!

it allows an address like

admin@site.co..uk
and
admin@site..co..uk

!eregi("^[[:alnum:]][a-z0-9_.-]*@[a-z0-9.-]+\.[a-z]{2,4}$", $email)

can someone please tell me how is this corrected?

thanks

Share this post


Link to post
Share on other sites
[a href=\"http://us3.php.net/manual/en/function.eregi.php#52458\" target=\"_blank\"]http://us3.php.net/manual/en/function.eregi.php#52458[/a]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.