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

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 101591
interpreted = N
texte = --=====================_32184359==.ALT Content-Type: text/plain; charset="us-ascii" Use a listmenu in a loop? [loop start=1&end=50] [/loop] I say only use text boxes when you don't need to control exactly what the user inputs. GJK At 12:32 PM 12/10/2008, you wrote: >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? > >-- --=====================_32184359==.ALT Content-Type: text/html; charset="us-ascii" Use a listmenu in a loop?

[loop start=1&end=50]
<option value="[index]">[index]</option>
[/loop]

I say only use text boxes when you don't need to control exactly what the user inputs.

GJK

At 12:32 PM 12/10/2008, you wrote:
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?

--
--=====================_32184359==.ALT-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Non-numbers entered into a field that asks for a ("Dan Strong" 2008)
  2. Re: [WebDNA] Non-numbers entered into a field that asks for a ("Gary Krockover" 2008)
  3. Re: [WebDNA] Non-numbers entered into a field that asks for a ("Dan Strong" 2008)
  4. Re: [WebDNA] Non-numbers entered into a field that asks for a ("Dan Strong" 2008)
  5. Re: [WebDNA] Non-numbers entered into a field that asks for a number (Stuart Tremain 2008)
  6. Re: [WebDNA] Non-numbers entered into a field that asks for a ("Gary Krockover" 2008)
  7. Re: [WebDNA] Non-numbers entered into a field that asks for a ("Dan Strong" 2008)
  8. Re: [WebDNA] Non-numbers entered into a field that asks for a number (Marc Thompson 2008)
  9. Re: [WebDNA] Non-numbers entered into a field that asks for a (Gary Krockover 2008)
  10. Re: [WebDNA] Non-numbers entered into a field that asks for a number (Govinda 2008)
  11. Re: [WebDNA] Non-numbers entered into a field that asks for a number (Ki Song 2008)
  12. Re: [WebDNA] Non-numbers entered into a field that asks for a number (Marc Thompson 2008)
  13. [WebDNA] Non-numbers entered into a field that asks for a number (Ki Song 2008)
--=====================_32184359==.ALT Content-Type: text/plain; charset="us-ascii" Use a listmenu in a loop? [loop start=1&end=50] [/loop] I say only use text boxes when you don't need to control exactly what the user inputs. GJK At 12:32 PM 12/10/2008, you wrote: >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? > >-- --=====================_32184359==.ALT Content-Type: text/html; charset="us-ascii" Use a listmenu in a loop?

[loop start=1&end=50]
<option value="[index]">[index]</option>
[/loop]

I say only use text boxes when you don't need to control exactly what the user inputs.

GJK

At 12:32 PM 12/10/2008, you wrote:
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?

--
--=====================_32184359==.ALT-- Gary Krockover

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:

[Protect] tag NOT working in 4.01 with Webstar 4.2 ! (2000) Error Lob.db records error message not name (1997) Searching/sorting dates (1997) Sku numbers (1997) RE: Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997) [WebDNA] site becomes unavailable and WebCatalog warnings (2017) WebCatalog can't find database (1997) Mass Mail (2000) SQL/ODBC (again) (2004) Field validation problem (1999) Nested tags count question (1997) RE: WebCatalog2 for NT Beta Request (1997) Setting user and password (1999) Snake Bites (1997) Errata: WCS Newbie question (1997) WebCat2 - Getting to the browser's username/password data (1997) country of origin from IPADDRESS??? (2001) [ot] ShowIf & HideIf Question (1998) WebCat2 beta 11 - new prefs ... (1997) Requiring that certain fields be completed (1997)