Email Validator

If this saves you from having to something boring like this yourself then - well - cool!

easiest email you can get away with is “a@a.a”

any suggestions welcome.:slight_smile:

edit: added a swf

edit2: and heres a link to another one
http://www.actionscripts.co.uk/tutorials/poab/poab03/email_validation_tute.htm

edit3: discovered a simple javascript way which creates an alert popup which someone may find useful
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#808080]// FromName, FromEmail, ReservationDate, ReservationTime set on the properties panel in the ’ var ’ box[/COLOR]
[COLOR=#0000ff]on[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR]FromName [COLOR=#0000ff]eq[/COLOR] [COLOR=#ff0000]""[/COLOR] or FromEmail [COLOR=#0000ff]eq[/COLOR] [COLOR=#ff0000]""[/COLOR] or ReservationDate [COLOR=#0000ff]eq[/COLOR] [COLOR=#ff0000]""[/COLOR] or ReservationTime [COLOR=#0000ff]eq[/COLOR] [COLOR=#ff0000]""[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]getURL[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“javascript:alert(‘Please enter information in all fields’)”[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR] [COLOR=#0000ff]else[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]

edit4: nattan99’s validator

edit5: as for regex in flash <8.0 I beleive but havent tested…
http://www.kirupa.com/forum/showpost.php?p=1746781&postcount=33

edit6: excellent javascript validator by icio
http://www.kirupa.com/forum/showpost.php?p=1913977&postcount=52

edit7: rhamej simple validator
http://www.kirupa.com/forum/showpost.php?p=1914399&postcount=55

i’m using amfphp and a validator function in php. A simple eregi…

eregi("^[a-z0-9]+([_\.-][a-z0-9]+)"."@([a-z0-9]+([.-][a-z0-9]+))$",$mail,$regs)
It works fine.