[BULK] Re: [WebDNA] why append made record twice in database

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 110023
interpreted = N
texte = =46rom my experience when I had situations similar to this I usually = found one of two things causing the problem: 1) weird wonky redirects caused a minor loop and thus the form was = "submitted" and processed twice. 2) Users hitting the back button, then the forward button, etc. I = usually add a small invisible unique token to the submit form, then on the next = page use a search to to see if the submission is new, or already saved = into the database. Brian B. Burton On Dec 10, 2012, at 10:13 PM, Govinda = wrote: >=20 > If you just don't know what happened in your code, and choose to = mis-trust the [append] tag/context, then you are shooting yourself in = the foot; what I mean is that you will cause a blind spot in your = understanding, and also miss out on that functionality with that tag, = unnecessarily. >=20 > Web app coding is pure logic.. not luck, nor superstitious things. = Sometimes we don't have time to find out the logic... then OK (if you = have no problem and have no time, then just move on), ... but I just = wanted to be clear about where this was being left as a thread, as a = service, on this talklist. I am not trying to be rude, but treat you as = I would want to be treated; I think it is important to get to the bottom = of things, to understand what is really happening... otherwise we will = not get far in coding. >=20 > Just say if you decide to revisit this topic, and would like more = help. >=20 > -Govinda Associated Messages, from the most recent to the oldest:

    
=46rom my experience when I had situations similar to this I usually = found one of two things causing the problem: 1) weird wonky redirects caused a minor loop and thus the form was = "submitted" and processed twice. 2) Users hitting the back button, then the forward button, etc. I = usually add a small invisible unique token [cart]"> to the submit form, then on the next = page use a search to to see if the submission is new, or already saved = into the database. Brian B. Burton On Dec 10, 2012, at 10:13 PM, Govinda = wrote: >=20 > If you just don't know what happened in your code, and choose to = mis-trust the [append] tag/context, then you are shooting yourself in = the foot; what I mean is that you will cause a blind spot in your = understanding, and also miss out on that functionality with that tag, = unnecessarily. >=20 > Web app coding is pure logic.. not luck, nor superstitious things. = Sometimes we don't have time to find out the logic... then OK (if you = have no problem and have no time, then just move on), ... but I just = wanted to be clear about where this was being left as a thread, as a = service, on this talklist. I am not trying to be rude, but treat you as = I would want to be treated; I think it is important to get to the bottom = of things, to understand what is really happening... otherwise we will = not get far in coding. >=20 > Just say if you decide to revisit this topic, and would like more = help. >=20 > -Govinda "Brian B. Burton"

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:

MacOS alias identification? (1998) Pithy questions on webcommerce & siteedit (1997) Auto Date (2001) Help! WebCat2 bug (1997) Google Web Accelerator (2005) [OT] Movie (2002) emailer setup (1997) Shipping calculaitons (2001) Stopping NT WebCat service (1998) Tech question about web dna actions (1998) Ampersand is breaking search context (1999) [writefile] (1997) Multi-processor Mac info ... (1997) Date Calulation (1997) RE: too many nested [xxx] (1997) Form Weirdness (2002) Alpha List for Catagory (1998) Date subtraction (2002) UPDATE PROBLEM (1997) Requiring that certain fields be completed (1997)