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=20high end of the list-menu to 50 (or a 100), nobody will=20ever order more than that. Start the index at 1 for the=20loop so that it defaults to 1 as well.Error checking could (and should) be added to the landing=20page for the quantity entered whether or not it comes from=20a list-menu or a text box. In fact, the list-menu would=20be far safer and would guarantee that you get the desired=20input, instead of monkeying around with code to route the=20user back to the form so that they can try to numkey a "2"=20in the space.Just saying.
GJKOn 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:
Well, I know Ki's store and what he sells, if you put the=20high end of the list-menu to 50 (or a 100), nobody will=20ever order more than that. Start the index at 1 for the=20loop so that it defaults to 1 as well.Error checking could (and should) be added to the landing=20page for the quantity entered whether or not it comes from=20a list-menu or a text box. In fact, the list-menu would=20be far safer and would guarantee that you get the desired=20input, instead of monkeying around with code to route the=20user back to the form so that they can try to numkey a "2"=20in the space.Just saying. GJKOn 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:
formatting a number (1999)
[Listfiles] vs Netfinder (1997)
Running 2 two WebCatalog.acgi's (1996)
Newbie questions (1999)
Sku numbers (1997)
[WebDNA] Some code inside a large loops fail ... but why? (2010)
time sort question (2005)
Sendmail (1997)
Need help with form (1998)
More on the email templates (1997)
Thanks ! (1997)
WC2b12: Yes, Formulas.db is for real (1997)
Problem with version 4 browsers (1998)
Getting the domain of every request ... (2003)
Merchant and WebCat 3.0 (1998)
Web*SSL and WebCatalog (1997)
autocommit problem (1998)
[ShowNext] (1997)
japanese characters (1997)
quantity minimum problem (1997)