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. > >LO John A. Hill Pacific Coast Software http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Prevent multiple appends with Reload Button (Kenneth Grome 1997)
  2. Re: Prevent multiple appends with Reload Button (Larry Orchier 1997)
  3. Re: Prevent multiple appends with Reload Button (Larry Orchier 1997)
  4. Re: Prevent multiple appends with Reload Button (John Hill 1997)
  5. Re: Prevent multiple appends with Reload Button (John Hill 1997)
  6. Prevent multiple appends with Reload Button (Larry Orchier 1997)
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. > >LO John A. Hill Pacific Coast Software http://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:

Calendar (1997) best practices for long articles (2002) different show next (1997) [isfile] ? (1997) Counting LineItems (2000) Web Catalog 2 demo (1997) database size? (1997) form data submission gets truncated (1997) Date field search needs ... (1998) Enhanced Master Counter? (1997) Erotic Sites (1997) form data submission gets truncated (1997) Problems getting parameters passed into email. (1997) Summary search -- speed (1997) Follow-up to listfiles bug report ... (2003) Line Endings (2007) Newbie Tax Question (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) WebCommerce: Folder organization ? (1997) Error Lob.db records error message not name (1997)