Re: easiest way to check for a non-alphanumeric character?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35394
interpreted = N
texte = At 2:21 PM 7/29/00, John Butler wrote: >***** > >Do I need more? >I.e. is this enough to check for any possible non-alphanumeric char?No. You're not checking for space _ , = + { } ' * blah blah blah. And my experience with the check every bad value approach is that it is time consuming, produces ugly code, and I invariably miss some character or another.There are a couple of ways to accomplish what you want.One way is to create a conversion database which converts a-z, A-Z and 0-1 to nothing. Then set a temporary text variable to the value of the form variable. Pass the temp variable through the conversion db above which would leave everything in the string except alphanumerics. Then if the size of the temp variable is not zero, they made and input error.___Joe___ _________________________________________________ Joseph D'Andrea JoeDan@West21.com WEST21.com Internet services for the 21st Century http://www.west21.com/ _________________________________________________ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: easiest way to check for a non-alphanumeric character? (John Butler 2000)
  2. Re: easiest way to check for a non-alphanumeric character? (Joseph D'Andrea 2000)
  3. easiest way to check for a non-alphanumeric character? (John Butler 2000)
At 2:21 PM 7/29/00, John Butler wrote: >***** > >Do I need more? >I.e. is this enough to check for any possible non-alphanumeric char?No. You're not checking for space _ , = + { } ' * blah blah blah. And my experience with the check every bad value approach is that it is time consuming, produces ugly code, and I invariably miss some character or another.There are a couple of ways to accomplish what you want.One way is to create a conversion database which converts a-z, A-Z and 0-1 to nothing. Then set a temporary text variable to the value of the form variable. Pass the temp variable through the conversion db above which would leave everything in the string except alphanumerics. Then if the size of the temp variable is not zero, they made and input error.___Joe___ _________________________________________________ Joseph D'Andrea JoeDan@West21.com WEST21.com Internet services for the 21st Century http://www.west21.com/ _________________________________________________ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Joseph D'Andrea

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:

Separate SSL Server (1997) NT 4.0/IIS WebCat Installation (1998) BR (1997) webcat (2000) [WebDNA] reCAPTCHA and WebDNA (2010) OS X, Communigate Pro & Line Breaks (2003) limiting found items (2001) [WebDNA] WebDNA Host needed urgently (2013) why start a new thread the official way, --- WAS: [WebDNA] Quick grep question (2009) page chokes on hideif when false and ignored (1998) Help! WebCat2 bug (1997) Forcing Paragraph Breaks on Results (1998) buy 2 items get this free (2003) summ=T (2003) Searching multiple fields from one form field (1997) [Sum] function? (1997) WebCat2b15MacPlugin - [protect] (1997) WebDNA Solutions ... sorry! (1997) RE: [WebDNA] anyone know why webdna kicking out incorrect dates? (2008) WebCat2 - [include] tags (1997)