Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: [flasher] Detecting valid email format F4 |
From: | PSWoods |
Date: | Fri, 02 Feb 2001 22:43:18 -0000 |
this is very easy to do in any server-side scripting language, and even in
JavaScript.
it is very clumsy to do in Flash. Flash doesn't really have any advanced
string methods
i would look for a way to do it on the server first. i can't think of an
application where a valid email is important if it doesn't leave the client
machine.
------------------------------------
if you must do it in flash, try splitting the email into an array by the @
sign first, then loop thru the resultant array, splitting by the dot. at
that point, it is easy to check some simple criteria to see if you have an
email address-type string.
----- Original Message -----
From: "JGL" <infodesignthenet [dot] com>
To: "flasher from chinwag" <flasherlists [dot] chinwag [dot] com>
Sent: Friday, February 02, 2001 2:37 PM
Subject: [flasher] Detecting valid email format F4
> Ok, I need to detct that an email address a user puts in a form field is
> formatted properly.
>
> Minimum formatting would be:
>
> xx [dot] xx
>
> In otherwords, it *must* contain a '@' and a '.', plus it must have
> *atleast* 1 character before the '@' and *atleast* 1 character after the
'@'
> or before the '.', plus *atleast* two characters after the '.'
>
> Anyone one do this before and have a quick F4 solution that checks before
> the form is submitted? I need this cause the cgi mailer I'm using won't
> submit without this parameter.
>
> I could just use a valid e-mail addy as the'from' field but would like to
> make it convenient for my client to simply hit reply when he receives a
cgi
> generated mail.
>
> Thanks for any insight . . . .
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]