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:
Locking up with WebCatalog... (1997)
Problems when user hit back (2000)
[date] formatting bug inside [orderfile]? (1998)
Looking up two prices in database? (1997)
Unexpected error (1997)
WebCat2b12 CGI Mac -- Problems propagating the cart through (1997)
Bug Report, maybe (1997)
Exclamation point (1997)
Re:Searching for ALL / empty form field (1997)
WebCat2 - [include] tags (1997)
Stock Quotes (2000)
Converting characters to numbers ... (1997)
Filemaker Pro & Webcatalog (1999)
Help! WebCat2 bug (1997)
Running 2 two WebCatalog.acgi's (1996)
Re[2]: OT: Sending email to lots of subscribers (1999)
Sorting by highest number of matches unique to a field (2003)
replace problem (1999)
multi-paragraph fields (1997)
Mystery authentication (1997)