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 users don't even have a choice of entering an illegal value into a text box. That will solve the 'illegal input' problem very effectively once and for all ...You can probably take another approach to solve this problem, too. For example, maybe you can do some math on the value entered to determine if it is a number or some letters. Perhaps simply by dividing the entered value by 1 would make WebCat2 respond with either a number or nothing. I haven't tried 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 that there's almost always a way to do something with WebCat2 ... :)Sincerely, Ken Grome WebDNA Solutionshttp://www.hui.net/dna/webdna.html Associated Messages, from the most recent to the oldest:

    
  1. Re: wrong input values? (Grant Hulbert 1997)
  2. Re: wrong input values? (Kenneth Grome 1997)
  3. wrong input values? (Kevin Furuta 1997)
>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 users don't even have a choice of entering an illegal value into a text box. That will solve the 'illegal input' problem very effectively once and for all ...You can probably take another approach to solve this problem, too. For example, maybe you can do some math on the value entered to determine if it is a number or some letters. Perhaps simply by dividing the entered value by 1 would make WebCat2 respond with either a number or nothing. I haven't tried 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 that there's almost always a way to do something with WebCat2 ... :)Sincerely, Ken Grome WebDNA 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:

WebCat2: multiple currency support (1997) Bug with periods in [math] variable names (2001) Execute Applescript (1997) Make sure I understand this??? (1997) WebCatalog and WebTen (1997) price formula (1999) Pithy questions on webcommerce & siteedit (1997) webcat- multiple selection in input field (1997) Error Log.db --however (1997) Aaron kant add (or whatever it was) (2000) Multiple catalog databases and showcart (1997) Emailer (WebCat2) (1997) thread7715.debug (1999) more ! testing (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) [encrypt] problems? (1998) WebDNA 6.x - Compatibility with Fedora release 1? (2004) maximu values for sendmail! (1997) Stumped (1999) Multiple cart additions (1997)