Re: wrong input values?
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12497
interpreted = N
texte = >My computer geek friend bashed webcatalog because it seems that there is no>way for it to check for illegal character strings within the [quantities]>box.>>For instance, if I entered ABC in the box, it would give a huge numeric value.>>Is there a way to check it so that an error page comes up if there is an>illegal value put in?You can put all your 'legal' values into a popup field, then your usersdon't even have a choice of entering an illegal value into a text box. Thatwill solve the 'illegal input' problem very effectively once and for all ...You can probably take another approach to solve this problem, too. Forexample, maybe you can do some math on the value entered to determine if itis a number or some letters. Perhaps simply by dividing the entered valueby 1 would make WebCat2 respond with either a number or nothing. I haven'ttried this but it's easy to test and may be worth a try ...There may be even better ways to do this. One thing I have learned is thatthere's almost always a way to do something with WebCat2 ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Associated Messages, from the most recent to the oldest:
>My computer geek friend bashed webcatalog because it seems that there is no>way for it to check for illegal character strings within the [quantities]>box.>>For instance, if I entered ABC in the box, it would give a huge numeric value.>>Is there a way to check it so that an error page comes up if there is an>illegal value put in?You can put all your 'legal' values into a popup field, then your usersdon't even have a choice of entering an illegal value into a text box. Thatwill solve the 'illegal input' problem very effectively once and for all ...You can probably take another approach to solve this problem, too. Forexample, maybe you can do some math on the value entered to determine if itis a number or some letters. Perhaps simply by dividing the entered valueby 1 would make WebCat2 respond with either a number or nothing. I haven'ttried this but it's easy to test and may be worth a try ...There may be even better ways to do this. One thing I have learned is thatthere's almost always a way to do something with WebCat2 ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Kenneth Grome
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:
Javascript/WebCatalog form population (2001)
EMailFolder (2007)
Language definitions and convertion (2000)
Which GUI HTML editors work with WC ? (1997)
possible bug in unix version? (2000)
changing prices in cart (1997)
New Installation (1998)
Associative lookup style? (1997)
WC 2.0 frames feature (1997)
Don't know if this is a sily question... (2003)
problems with 2 tags shakur (1997)
Running 2 two WebCatalog.acgi's (1996)
WebCat2 beta 11 - new prefs ... (1997)
Finding max value for a field (1997)
problems with WebCat-Plugin ()
Possible Bug in 2.0b15.acgi (1997)
First postarg not taking in $Commands (1997)
Directory Overload (1998)
from outside to inside store direct frame template link? (2000)
A question on sub-categories (1997)