RE: Is there a 'does not contain' comparison?
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23881
interpreted = N
texte = Greetings:> [Hideif [email]=@.][math]err=1[/math]> You must enter a valid
Email Address.
> [/hideif]You can't do what you want, but you could do this which would catch if ithad 2 emails:[Hideif [email]=@] [Hideif [email]=.] [math]err=1[/math] You must enter a valid
Email Address.
[/hideif][/hideif]If you want a really good email checker, create the following include file:===checkEmail.inc===[math show=f]xtotal=1[/math][mathshow=f]ilen=[countChars][args][/countChars][/math][text]varEnds=[getcharsstart=1&end=1][args][/getchars][getcharsstart=[math]ilen[/math]&end=[math]ilen[/math]][args][/getchars][/text][text]varMid=[getcharsstart=2&end=[math]ilen-1[/math]][args][/getchars][/text][mathshow=f]xtotal=xtotal*[showif [text]varMid[/text]^@]1[/showif][hideif[text]varMid[/text]^@]0[/hideif][/math][math show=f]xtotal=xtotal*[showif[text]varMid[/text]^.]1[/showif][hideif[text]varMid[/text]^.]0[/hideif][/math][math show=f]xtotal=xtotal*[showif[text]varEnds[/text]^@]0[/showif][hideif[text]varEnds[/text]^@]1[/hideif][/math][math show=f]xtotal=xtotal*[showif[text]varEnds[/text]^.]0[/showif][hideif[text]varEnds[/text]^.]1[/hideif][/math][math show=f]xtotal=xtotal*[showif[args]^ ]0[/showif][hideif [args]^ ]1[/hideif][/math][showif[math]xtotal[/math]=1]T[/showif][hideif [math]xtotal[/math]=1]F[/hideif]===/checkEmail.inc===Now call this as follows:[Hideif [include file=checkEmail.inc&args=[yourEmailVarToCheck]]=T] [math]err=1[/math] You must enter a valid
Email Address.
[/hideif]This will check for lots of things and catch most malformed email addresses(thanks Harry).Aloha, Olin
Associated Messages, from the most recent to the oldest:
Greetings:> [Hideif [email]=@.]
[math]err=1[/math]> You must enter a valid
Email Address.
> [/hideif]You can't do what you want, but you could do this which would catch if ithad 2 emails:[Hideif [email]=@] [Hideif [email]=.]
[math]err=1[/math] You must enter a valid
Email Address.
[/hideif][/hideif]If you want a really good email checker, create the following include file:===checkEmail.inc===[math show=f]xtotal=1[/math][mathshow=f]ilen=
[countchars][args][/countChars][/math]
[text]varEnds=[getcharsstart=1&end=1][args][/getchars][getcharsstart=
[math]ilen[/math]&end=
[math]ilen[/math]][args][/getchars][/text]
[text]varMid=[getcharsstart=2&end=
[math]ilen-1[/math]][args][/getchars][/text][mathshow=f]xtotal=xtotal*[showif
[text]varMid[/text]^@]1[/showif][hideif
[text]varMid[/text]^@]0[/hideif][/math][math show=f]xtotal=xtotal*[showif
[text]varMid[/text]^.]1[/showif][hideif
[text]varMid[/text]^.]0[/hideif][/math][math show=f]xtotal=xtotal*[showif
[text]varEnds[/text]^@]0[/showif][hideif
[text]varEnds[/text]^@]1[/hideif][/math][math show=f]xtotal=xtotal*[showif
[text]varEnds[/text]^.]0[/showif][hideif
[text]varEnds[/text]^.]1[/hideif][/math][math show=f]xtotal=xtotal*[showif[args]^ ]0[/showif][hideif [args]^ ]1[/hideif][/math][showif
[math]xtotal[/math]=1]T[/showif][hideif
[math]xtotal[/math]=1]F[/hideif]===/checkEmail.inc===Now call this as follows:[Hideif [include file=checkEmail.inc&args=[yourEmailVarToCheck]]=T]
[math]err=1[/math] You must enter a valid
Email Address.
[/hideif]This will check for lots of things and catch most malformed email addresses(thanks Harry).Aloha, Olin
Olin Lagon
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Authenticate Questions (2003)
WebCat2b13MacPlugIn - syntax to convert date (1997)
The word TYPE in search contexts and fields (1998)
[LOOKUP] (1997)
Mass Mail (2000)
refreshing IE with posted .tmpl (1997)
Exclamation point (1997)
form validator issue (2005)
autosensing lanague selection (1997)
error: Too many nested [xxx] contexts (1997)
Netscape Communicator 4 chops off URLs (was No Data) (1997)
Re:no [search] with NT (1997)
Some Advise needed (1997)
calculating tax rates, mail order solutions and version 2 (1997)
WebCat2: Items xx to xx shown, etc. (1997)
sorting problem for sku=0? (1998)
Carts & Refering URLs (1997)
Dismissing dialogs (was 2.1b3 --> way slow) (1997)
WebDelivery downloads alias, not original ? (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)