[WebDNA] Non-numbers entered into a field that asks for a number

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 101586
interpreted = N
texte = On our add to cart form, we have a text field that requires a customer to enter the quantity of an item (it defaults to a quantity of 1). If a customer accidentally enters a letter, or any non-number, it looks like it converts that non-number to a random number. What is the best way to code the page so that the customer can't enter a non-number into the field? -- Ki Song Knifecenter, Inc. 5111 Berwyn Rd. STE 110 College Park, MD 20740 (301) 486-0901 ext. 24 (local & international) (800) 338-6799 ext. 24 (toll free) (301) 486-0908 (fax) Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Non-numbers entered into a field that asks for a number (Stuart Tremain 2008)
  2. Re: [WebDNA] Non-numbers entered into a field that asks for a number (Marc Thompson 2008)
  3. Re: [WebDNA] Non-numbers entered into a field that asks for a number (Govinda 2008)
  4. Re: [WebDNA] Non-numbers entered into a field that asks for a number (Ki Song 2008)
  5. Re: [WebDNA] Non-numbers entered into a field that asks for a number (Marc Thompson 2008)
  6. [WebDNA] Non-numbers entered into a field that asks for a number (Ki Song 2008)
On our add to cart form, we have a text field that requires a customer to enter the quantity of an item (it defaults to a quantity of 1). If a customer accidentally enters a letter, or any non-number, it looks like it converts that non-number to a random number. What is the best way to code the page so that the customer can't enter a non-number into the field? -- Ki Song Knifecenter, Inc. 5111 Berwyn Rd. STE 110 College Park, MD 20740 (301) 486-0901 ext. 24 (local & international) (800) 338-6799 ext. 24 (toll free) (301) 486-0908 (fax) Ki Song

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:

calculating shipping costs by a sum of weights (1999) Spawn doesn't work as advertised ... (2000) installing webcatalog problem. HELP! (1998) WebCatalog can't find database (1997) webcat2b12 CGI -- Date comparisons (1997) DB Updates don't take (1998) [showif] with ! (2000) [OT] Test - THE ANSWER (2003) how to post without certain data appearing in the html source (2001) Frames (1997) ShowIf helper? (1998) Review comparison by PC Magazine: Open for On-line Business (1997) access denied problem (1997) Merging databases (1997) WebCat2.0 acgi vs plugin (1997) Help! WebCat2 bug (1997) [WebDNA] WebDNA Roll Call (2013) WebMerchant 1.6 and SHTML (1997) Running _every_ page through WebCat ? (1997) WebCat2: Master Counter snippet (1997)