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 = 101611
interpreted = N
texte = Ki, I'd be curious to know what solution you ultimately decide to go with=.-DanOn Wed, 10 Dec 2008 15:52:29 -0800 "Gary Krockover"
wrote:> Well, I know Ki's store and what he sells, if you put the high end of t=he list-menu to 50 (or a=20>100), nobody will ever order more than that. Start the index at 1 for t=he loop so that it=20>defaults to 1 as well.>=20> Error checking could (and should) be added to the landing page for the =quantity entered whether=20>or not it comes from a list-menu or a text box. In fact, the list-menu =would be far safer and=20>would guarantee that you get the desired input, instead of monkeying aro=und with code to route=20>the user back to the form so that they can try to numkey a "2" in the sp=ace.>=20> Just saying. >=20> GJK>=20> 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 submission-page wit=h vars in the URL (ie.=20>>"blah.com?user_input_field=3D" or=20>>"blah.com?user_input_field=3DnonNumericCharacters"), or POSTED to the p=age 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 credited with= the "random password=20>>>generator" code on WebDNA.us (which is similar to this, but again, it =originally came from=20>>>someone else, Kline I think. At any rate, yes this is exactly what mak=es this list so great and=20>>>durable.>>> -Dan> 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:
Ki, I'd be curious to know what solution you ultimately decide to go with=.-DanOn Wed, 10 Dec 2008 15:52:29 -0800 "Gary Krockover" wrote:> Well, I know Ki's store and what he sells, if you put the high end of t=he list-menu to 50 (or a=20>100), nobody will ever order more than that. Start the index at 1 for t=he loop so that it=20>defaults to 1 as well.>=20> Error checking could (and should) be added to the landing page for the =quantity entered whether=20>or not it comes from a list-menu or a text box. In fact, the list-menu =would be far safer and=20>would guarantee that you get the desired input, instead of monkeying aro=und with code to route=20>the user back to the form so that they can try to numkey a "2" in the sp=ace.>=20> Just saying. >=20> GJK>=20> 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 submission-page wit=h vars in the URL (ie.=20>>"blah.com?user_input_field=3D" or=20>>"blah.com?user_input_field=3DnonNumericCharacters"), or POSTED to the p=age 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 credited with= the "random password=20>>>generator" code on WebDNA.us (which is similar to this, but again, it =originally came from=20>>>someone else, Kline I think. At any rate, yes this is exactly what mak=es this list so great and=20>>>durable.>>> -Dan> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
"Dan Strong"
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:
SSL, WebSTAR, WebCatalog (1998)
Execute Applescript (1997)
Mac 2.1b2 speed (1997)
Log-in Scheme (2003)
[Webcat 2]Next (1997)
New cart in ShoppingCarts (2003)
Formating Tables w/[founditems] (1998)
WebCat2b13MacPlugIn - syntax to convert date (1997)
Signal Raised (1997)
Sending Mail Confirmation (2002)
[OT] Disable/enable field (2003)
Incrementing a number (1998)
attn: smitmicro - cart limitation (2002)
.html with IIS4 (1999)
List Address Changed! (1998)
windows file upload = weirdness (2004)
Deadlock Problem (2000)
Bug or syntax error on my part? (1997)
OT Pager notification of completed orders (1998)
Error, 101 a DNS problem ? (1997)