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:
error: Too many nested [xxx] contexts (1997)
Zip Code Search (2000)
WebCat2 several catalogs? (1997)
New public beta available (1997)
Thanks ! (1997)
RE: [WebDNA] Good advise on [Showif] or alternative... (2012)
email preferences on NT (1997)
update on wn searching (1997)
date pref (1999)
can WC render sites out? (1997)
Generating unique SKU from [cart] (1997)
RE: Error: template (1997)
HomePage Caution (1997)
Re1000001: Setting up shop (1997)
2nd WebCatalog2 Feature Request (1996)
[WebDNA] GREP Question (2009)
[addlineitems] display (1997)
Re:PCS Customer submissions ? (1997)
FORMS: Returning a specific page (1997)
Cookies and WebTV (1999)