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:
Search over 500 (2000)
Multiple 'Users.db' files not possible (1997)
WebCat2b13MacPlugIn - [include] (1997)
Attn: Bug in GeneralStore example b15 (1997)
Shell script within a sandbox (2005)
[WebDNA] WebDNA as cgi app (was WebSite Examples) (2008)
[WebDNA] Stuck with installing Webdna 8.5 (2017)
many-to-one problem (1998)
version 2 for NT (1997)
Talk List Suggestions (1997)
Archives (2001)
[carts] and databases (1997)
MacAuthorize order data fields WAS:How To question... (1997)
Robert Minor duplicate mail (1997)
[WebDNA] 2nd pair of eyes on redirect please (2011)
[WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018)
[WebDNA] Issue with variable inside a Function (2018)
Database Helper missing? (2000)
line endings for Mac OS X files? (2003)
greater than or equal to (1997)