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 it had 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][math show=f]ilen=[countChars][args][/countChars][/math][text]varEnds=[getchars start=1&end=1][args][/getchars][getchars start=[math]ilen[/math]&end=[math]ilen[/math]][args][/getchars][/text][text] varMid=[getchars start=2&end=[math]ilen-1[/math]][args][/getchars][/text][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]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:

    
  1. RE: Is there a 'does not contain' comparison? (webcat 1999)
  2. Re: Is there a 'does not contain' comparison? (Bob Minor 1999)
  3. RE: Is there a 'does not contain' comparison? (Olin Lagon 1999)
  4. Re: Is there a 'does not contain' comparison? (Kenneth Grome 1999)
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 it had 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][math show=f]ilen=[countchars][args][/countChars][/math][text]varEnds=[getchars start=1&end=1][args][/getchars][getchars start=[math]ilen[/math]&end=[math]ilen[/math]][args][/getchars][/text][text] varMid=[getchars start=2&end=[math]ilen-1[/math]][args][/getchars][/text][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]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:

FEW QUESTIONS (1997) [OT] My own Hot Mail like e-mail services (2003) [WebDNA] Emailer & SMTP (2009) Mac Webcat 3.0.3b1 memory leak redirect inside search (1998) serial number generation (1997) Memory Error message (1998) I give up!! (1997) [WebDNA] paypal (2009) PCS Frames (1997) Sorting error (1997) select multiple 2 more cents (1997) Separate SSL Server (1997) WebCat2 - Getting to the browser's username/password data (1997) WebCat2b15MacPlugin - showing [math] (1997) .eml files (2001) Botched cart numbers in webmerchant 2.1x email with webcat 3 (1998) Orderfile Encryption (2007) New NT betas available (1997) WebDNA 4.5.1 on Tiger Server (2005) Time Tracking (2003)