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

The Top Ten (2002) Server crash (1997) WebSTAR, OSX, WebDNA permissions problem ... (2005) Re:no [search] with NT (1997) Emailer setup (1997) Search in 2 or more catalogs (1997) I give up!! (1997) Re[3]: Problem with new formvariables (2000) [random] only for 1-100??? (1997) NT beta ReadMe missing (b12-b15) (1997) Secure server question (1997) Searching,Brain Dead! (1999) WebCat2 Append problem (B14Macacgi) (1997) numfound question (2005) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) YACBQ.....(Yet another checkbox question) (2000) Re:PCS Customer submissions ? (1997) Banner Rotation (2000) No luck with taxes (1997) how to add from an Include file command (2005)