Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: actionscript to validate email address, anyone?
From: Torbj�rn Caspersen
Date: Mon, 13 Mar 2000 11:31:24 GMT




I found a validating javascript, here's the actionscript translation. It
assumes that sendto is the variabel containing an emailaddress.

teller is norwegian for counter, and tilbakemedling mean feedback, not
that it matters, but is perhaps clearifying for those who want to read the
code.

On (Release)
Set Variable: "teller" = 1
Loop While (teller <= length (sendto))
If (substring (sendto, teller, 1) eq "@")
Set Variable: "apos" = teller
End If
Set Variable: "teller" = teller +1
End Loop
Set Variable: "teller" = 1
Loop While (teller <= length (sendto))
If (substring (sendto, teller, 1) eq ".")
Set Variable: "lastdot" = teller
End If
Set Variable: "teller" = teller +1
End Loop
If (apos<1 or lastdot-apos<2 or length (sendto)-lastdot >3 or length
(sendto)-lastdot < 2)
Set Variable: "tilbakemelding" = "email address incorrect"
Else
Set Variable: "tilbakemelding" = " "
Get URL ("http://send to parsing.cgi", window="_blank",
vars=POST)
End If
End On



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Rom Card Production Companies in , Lee Springthorpe

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]