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:

Exclamation point (1997) Announce: WebMerchant 3.0 for Mac shipping now (1998) Banner Ad example (Typhoon) and WebCatalog (1997) Where is f2? (1997) Large databases in WebCat (1997) Error Log.db --however (1997) Database cloning- will the real -oRiGiNaL- please stand up (2003) Format question WC Mac f3 (1997) [ShowIf] a either fields are blank (1998) old mail...problem with listserv? (1998) Textarea Breaks (2000) [OT] "ID" in the URL scares Googlebot? (2003) Help: sorting in found set. (2001) Part Html part WebDNA (1997) unitshipcost vs shipcosts (1997) AutoCommit Preference? (1998) Unexpected error (1997) Conditional searching & displaying (1997) triggers.db (1999) Re[2]: OT: Amazon Patents (2000)