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==.ALTContent-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.GJKAt 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==.ALTContent-Type: text/html; charset="us-ascii"Use a listmenu in a loop?
I say only use text boxes when you don't need to control exactly what theuser inputs.
GJK
At 12:32 PM 12/10/2008, you wrote:
On our add to cart form, we havea 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 aletter, or any non-number, it looks like it converts that non-number to arandom number.
What is the best way to code the page so that the customer can't enter anon-number into the field?
--
--=====================_32184359==.ALT--
Associated Messages, from the most recent to the oldest:
--=====================_32184359==.ALTContent-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.GJKAt 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==.ALTContent-Type: text/html; charset="us-ascii"Use a listmenu in a loop?
I say only use text boxes when you don't need to control exactly what theuser inputs.
GJK
At 12:32 PM 12/10/2008, you wrote:
On our add to cart form, we havea 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 aletter, or any non-number, it looks like it converts that non-number to arandom number.
What is the best way to code the page so that the customer can't enter anon-number into the field?
--
--=====================_32184359==.ALT--
Gary Krockover
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...