Re: how do I "file lock" for a form?

2003-08-23 Thread Randal L. Schwartz
> "Gregg" == Gregg O'Donnell <[EMAIL PROTECTED]> writes:

Gregg> Hi. When a user hits "submit" many times after completeing a
Gregg> form, I get multiple (duplicate) entries in my
Gregg> spreadsheet. I've read that I can add a hidden field with a
Gregg> unique identifier to "lock the file" so this won't happen. I
Gregg> don't know how to do this - can anyone explain/direct me to a
Gregg> good info source (I am a newbie). Thanks, Gregg

My column at



shows this very technique.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how do I "file lock" for a form?

2003-08-22 Thread Rich Parker
Hi. When a user hits "submit" many times after completeing a form, I get multiple (duplicate) entries in my spreadsheet. I've read that I can add a hidden field with a unique identifier to "lock the file" so this won't happen. I don't know how to do this - can anyone explain/direct me to a good info source (I am a newbie). Thanks, Gregg

-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
I've had this issue also, no matter how often YOU put the "ONLY click 
once" somebody will do it twice, or more. I found a way by using DHTML 
to make it so that the SUBMIT button only works ONCE, I found it on the 
Dynamic Drive web site here:
http://www.dynamicdrive.com/
They have some excellent ways using JS to stop the problems you are 
having.. The only problem that you can run into, is browser levels, if 
the user is on an older one the code doesn't work. So if you have some 
controls on this, like it is a company Intranet, as here, then you can 
use their ideas, try to use their "Cross browser techniques".

Happy coding.
--
Rich Parker
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


how do I "file lock" for a form?

2003-08-22 Thread Gregg O'Donnell
Hi. When a user hits "submit" many times after completeing a form, I get multiple 
(duplicate) entries in my spreadsheet. I've read that I can add a hidden field with a 
unique identifier to "lock the file" so this won't happen. I don't know how to do this 
- can anyone explain/direct me to a good info source (I am a newbie). Thanks, Gregg


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software