[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:

Re:no [search] with NT (1997) question: back button prevention (1997) hmmm (2006) RE: Shopping Cart Questions (1998) [WebDNA] autonumber duplication, time stamp issue & locking up (2010) WebCatalog 2.0 b 15 mac (1997) sort links (2002) problems with 2 tags shakur (1997) [WebDNA] =?windows-1252?Q?Re=3A_=5BWebDNA=5D_=5BWebDNA=5D_WebDNA=3A_Could_not_establish_co?= (2012) How nuch ram??? (1997) Webcat causing crashes left and right! (1997) New WebDNA Solutions ... (1997) Problem with my orders (1998) Nested tags count question (1997) Document Contains No Data! (1997) Sort Order on a page search (1997) Access Denied! But why? (1997) template cache problem (1998) Do triggers work on Macs? (2000) Force leading zeros (1998)