Re: Prevent multiple appends with Reload Button
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15475
interpreted = N
texte = Instead of doing an [append] you can use [replace] but include the tag append=T (i.e. [replace append=T&...]). This will append if it's not found, but just replace the data with itself if they replace the data.John.>When all the new customer information in cust.db has been verified, the>following appends a new record.>>[append db=cust.db]firstname=[firstname]&lastname=[lastname][/append]>>So far so good.>>However, if the new customer clicks on Reload, a duplicate record is>entered.>>>What is the best way to prevent duplicate appends? >>>Thanks.>>LOJohn A. HillPacific Coast Softwarehttp://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
Instead of doing an
[append] you can use
[replace] but include the tag append=T (i.e. [replace append=T&...]). This will append if it's not found, but just replace the data with itself if they replace the data.John.>When all the new customer information in cust.db has been verified, the>following appends a new record.>>[append db=cust.db]firstname=[firstname]&lastname=[lastname][/append]>>So far so good.>>However, if the new customer clicks on Reload, a duplicate record is>entered.>>>What is the best way to prevent duplicate appends? >>>Thanks.>>LOJohn A. HillPacific Coast Softwarehttp://www.smithmicro.com
John Hill
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:
Merry Christmas (2006)
WebCat2.0b15-to many nested [xx] tags (1997)
THANKS (1997)
Protecting Images (2003)
Text data with spaces in them... (1997)
Great product and great job ! (1997)
Menu to select product variations (1997)
WebCat2b15MacPlugin - showing [math] (1997)
WebMerchant 1.6 and SHTML (1997)
WebCat2: Items xx to xx shown, etc. (1997)
Setting up the server (1997)
Security Question (1997)
2.0Beta Command Ref (can't find this instruction) (1997)
Pithy questions on webcommerce & siteedit (1997)
CAlendar (2003)
Repost: Orderfile, Grandtotal: How do I get it to all add up. (2000)
[Fwd: F3 database munching] (1997)
Unexpected comparison behavior change in 4.5.1 (2003)
Do .tpls A Max File Size? (1998)
[TaxableTotal] - not working with AOL and IE (1997)