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:
[OT] Javascript help (2007)
LineItem variable set (2007)
WebCat and image maps (1997)
BGcolor (1997)
TCPConnect / Current Temperature (2004)
PhotoMill -> PhotoMaster (1997)
Displaying xx number of characters (1997)
[accountNum] and [math] (1997)
Help! Error: Help! I'm stuck: Can't open order file. Ignoring [OrderFile] context (2000)
Not really WebCat - need HTML Grider (1997)
Size Limitation through a POST via SSL? (2005)
Sku numbers (1997)
WebCatalog for Postcards ? (1997)
Wireless WebDNA available today! (2000)
WebCat & Oracle (2001)
Bug in random search - MacOS v4.5 plugin ... (2002)
ReadDateFormat (1998)
[Fwd: Rotating Banners ... (was LinkExchange)] (1997)
2nd WebCatalog2 Feature Request (1996)
Summing fields (1997)