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.comWEST21.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:
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.comWEST21.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:
Webcatalog/Butler (1998)
emailer w/F2 (1997)
emailer cc to figured out (1997)
empty shopping cart message (1997)
Still trying to email... (1998)
WebCat2 several catalogs? (1997)
WebCat2 - [format thousands] (1997)
Using files in an Email broadcast (1999)
WebCatalog complains that the service is not running. (1998)
WebDNA Solutions ... (1997)
Problems with [Search] param - Mac Plugin b15 (1997)
Generating unique SKU from [cart] - FIXED! (1997)
[WebDNA] Shopping cart code debug (2009)
Header values are not accepted (1998)
PCS Frames (1997)
New commands in Final candidate (1997)
RE: protect tag on NT (1997)
mySQL numfound (2006)
Snake Bites (1997)
Initiating NewCart (1997)