Re: [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 = 101590
interpreted = N
texte = Here is one way you could do it with webdna. [if "[URL][math show=F][UserInput]*0[/math][/URL]"="0"] [then] It's a number [/then] [else] tell user it is no good, e.g. [redirect] to same page, showing error msg, etc.) [/else] [/if] On Dec 10, 2008, at 11:32 AM, Ki Song 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? > > -- > 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) > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ 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)
Here is one way you could do it with webdna. [if "[url][math show=F][UserInput]*0[/math][/URL]"="0"] [then] It's a number [/then] [else] tell user it is no good, e.g. [redirect] to same page, showing error msg, etc.) [/else] [/if] On Dec 10, 2008, at 11:32 AM, Ki Song 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? > > -- > 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) > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Govinda

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:

New syntax feedback for 4.0 (2000) how to get s repeatedly in and out of a form? (1999) Paths (1998) Plugin or CGI or both (1997) WebCatalog NT beta 18 problem (1997) append=T problem (1998) RE: Is there an easier way? (1998) Newbie Tax Question (1997) japanese characters (1997) calculating unique time (1998) Problems appending to database (1997) Where's Cart Created ? (1997) Secure Server (1997) question: back button prevention (1997) PSC recommends what date format yr 2000??? (1997) File upload woes (1998) Unix line endings (2003) Problems getting parameters passed into email. (1997) Command=Showcart? (2000) Stumpted Again (1997)