More investigation seems like what happens is since I don't go through the DB and mark those cart items as having been inserted into our FMP database right away it is possible for them if the hit the button that close together that it will see the items in the cart again and I guess add them to the request scope cart. I am still a little fuzzy on this.
But if I make the submit button go away will that take care of this? Can you point me to a place where I can get that code? It looks like I could move the cleanup cart routine to right under insert order items or maybe even above it. Would that work and could it have any other effect we did not want? -- Dan Stein FileMaker 7 Certified Developer Digital Software Solutions 799 Evergreen Circle Telford PA 18969 Land: 215-799-0192 Cell: 610-256-2843 Fax 215-799-0192 ( Call 1st) FMP, WiTango, EDI,SQL 2000, MySQL, CWP [EMAIL PROTECTED] www.dss-db.com "I destroy my enemies when I make them my friends." Abraham Lincoln > From: Roland Dumas <[EMAIL PROTECTED]> > Reply-To: "[email protected]" <[email protected]> > Date: Sat, 10 Feb 2007 12:56:35 -0800 > To: "[email protected]" <[email protected]> > Subject: Re: Witango-Talk: Preventing two order submits > > 1. use a javascript that makes the submit button disappear on click > 2. Have a trap that prevents an empty cart from being submitted and > nuke the submitted shopping cart as quickly as possible > > On Feb 10, 2007, at 11:13 AM, Dan Stein wrote: > >> I have a very complicated taf that is used to process the orders on my >> clients site. >> >> I guess we have been lucky so far. But seems like last month at >> least one >> person hit the submit button twice looks like they might have even >> found a >> way to do it before the page refreshed. >> >> It made a duplicate order record and made a mess of the second >> order so it >> was actually everything twice. >> >> I have not figured out how that could happen yet. >> >> But what is the best way to prevent the submit button from getting >> hit twice >> if in fact they are going to do it even before page refreshes. >> >> Of note there are at least 3 different forms on this page. >> > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
