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 = 101610
interpreted = N
texte = Well, I know Ki's store and what he sells, if you put the=20 high end of the list-menu to 50 (or a 100), nobody will=20 ever order more than that. Start the index at 1 for the=20 loop so that it defaults to 1 as well. Error checking could (and should) be added to the landing=20 page for the quantity entered whether or not it comes from=20 a list-menu or a text box. In fact, the list-menu would=20 be far safer and would guarantee that you get the desired=20 input, instead of monkeying around with code to route the=20 user back to the form so that they can try to numkey a "2"=20 in the space. Just saying. GJK On Wed, 10 Dec 2008 15:44:04 -0800 "Dan Strong" wrote: >>> "Gary Krockover" wrote: >>> Again - isn't this exactly what a list-menu is for? >=20 > Oh wait, I misunderstood hehe. To your point, Gary, I=20 >don't think a list-menu would be appropriate in the case=20 >of the OP's situation: >=20 >>> On our add to cart form, we have a text field that=20 >>>requires a customer to enter the quantity of an item (it=20 >>>defaults to a quantity of 1). >=20 > ..what if someone wanted to order a quantity that was=20 >larger than the highest value in the list-menu? What if=20 >some joker bypassed the form completely and hit the=20 >submission-page with vars in the URL (ie.=20 >"blah.com?user_input_field=3D" or=20 >"blah.com?user_input_field=3DnonNumericCharacters"), or=20 >POSTED to the page with vars... etc. >=20 > Just sayin :p :-) > -Dan >=20 >=20 > On Wed, 10 Dec 2008 15:37:57 -0800 > "Dan Strong" wrote: >> Thanks, Gary, but I think the code I based that on=20 >>originally came from Charles Kline. I can't=20 >>remember anymore, it's been so long. On that note, I was=20 >>credited with the "random password=20 >>generator" code on WebDNA.us (which is similar to this,=20 >>but again, it originally came from someone else, Kline I=20 >>think. At any rate, yes this is exactly what makes this=20 >>list so great and durable. >> -Dan 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)
Well, I know Ki's store and what he sells, if you put the=20 high end of the list-menu to 50 (or a 100), nobody will=20 ever order more than that. Start the index at 1 for the=20 loop so that it defaults to 1 as well. Error checking could (and should) be added to the landing=20 page for the quantity entered whether or not it comes from=20 a list-menu or a text box. In fact, the list-menu would=20 be far safer and would guarantee that you get the desired=20 input, instead of monkeying around with code to route the=20 user back to the form so that they can try to numkey a "2"=20 in the space. Just saying. GJK On Wed, 10 Dec 2008 15:44:04 -0800 "Dan Strong" wrote: >>> "Gary Krockover" wrote: >>> Again - isn't this exactly what a list-menu is for? >=20 > Oh wait, I misunderstood hehe. To your point, Gary, I=20 >don't think a list-menu would be appropriate in the case=20 >of the OP's situation: >=20 >>> On our add to cart form, we have a text field that=20 >>>requires a customer to enter the quantity of an item (it=20 >>>defaults to a quantity of 1). >=20 > ..what if someone wanted to order a quantity that was=20 >larger than the highest value in the list-menu? What if=20 >some joker bypassed the form completely and hit the=20 >submission-page with vars in the URL (ie.=20 >"blah.com?user_input_field=3D" or=20 >"blah.com?user_input_field=3DnonNumericCharacters"), or=20 >POSTED to the page with vars... etc. >=20 > Just sayin :p :-) > -Dan >=20 >=20 > On Wed, 10 Dec 2008 15:37:57 -0800 > "Dan Strong" wrote: >> Thanks, Gary, but I think the code I based that on=20 >>originally came from Charles Kline. I can't=20 >>remember anymore, it's been so long. On that note, I was=20 >>credited with the "random password=20 >>generator" code on WebDNA.us (which is similar to this,=20 >>but again, it originally came from someone else, Kline I=20 >>think. At any rate, yes this is exactly what makes this=20 >>list so great and durable. >> -Dan "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:

with Link i need to (1997) Beta (?) version of WebCatalog 2.1 (1998) WebMerchant 1.6 and SHTML (1997) group searching problem (2002) Ken's grep question about renaming files to lowercase (2003) selectively replacing records within a [founditems] (2000) Where can I find hex equivalents for ASCII characters? (2000) Protecting Realms (was: IIS Brain Dead) (1998) WebCat & WebTen (1997) unsubscribe (1997) This is probably a stupid question... (2004) Webcat/Webmerchant (1998) E-mail formating question (1999) Robert Minor duplicate mail (1997) Re:Part 2 - [showif] if variable exists (1998) [BULK] [WebDNA] [BULK] Mac OS X LION has no FastCGI (2011) TCPConnect misbehavin' for me. (2000) Upload (1998) Ok here is a question? (1997) WebDNA 4.5.1 Now Available (2003)