[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. BurtonOn 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. BurtonOn 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"
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...