Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: [flasher] Detecting valid email format F4 |
From: | Gregg Caines |
Date: | Fri, 02 Feb 2001 20:27:54 -0000 |
Set Variable: "emailaddy" = "asdfasdfxaasdfasdf [dot] ccb"
Set Variable: "badaddy" = false
Set Variable: "addylength" = Length (emailaddy)
Set Variable: "checkletter" = substring (emailaddy, x, 1)
Set Variable: "char_num" = 0
Loop While (checkletter ne "@")
Set Variable: "char_num" = char_num + 1
Set Variable: "checkletter" = substring (emailaddy, char_num, 1)
End Loop
If (char_num < 2)
Set Variable: "badaddy" = true
End If
If (char_num > addylength - 4)
Set Variable: "badaddy" = true
End If
Loop While (checkletter ne ".")
Set Variable: "char_num" = char_num + 1
Set Variable: "checkletter" = substring (emailaddy, char_num, 1)
End Loop
If (char_num < 4)
Set Variable: "badaddy" = true
End If
If (char_num > addylength - 2)
Set Variable: "badaddy" = true
End If
If (char_num < addylength - 3)
Set Variable: "badaddy" = true
End If
(HTH!)
---------------------------------------------------
Gregg Caines
n e o m e t r i x systems inc.
http://www.neometrixsystems.com
gcainesneometrixsystems [dot] com
> Ok, I need to detct that an email address a user puts in a form field is
> formatted properly.
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]