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:

new cart IDs being assigned somehow (1997) gateway application timeouts (1998) [WebDNA] How to generate md5 hash on linux (2009) WebCatalog can't find database (1997) REPLACE & MAX/STARTAT parameters doesn't work? (2000) summ=T (2003) [OT] QuickDNS (2007) [WebDNA] v7 problem? (2012) Protect Tag and Groups (1998) WordBreak Qestion (part 2) (1998) Access Denied! But why? (1997) Netscape v. IE (1997) emailer w/F2 (1997) Using Currencies other than Dollars (1997) WebCat2 several catalogs? (1997) form data submission gets truncated (1997) Word Break (1999) bug in [SendMail] (1997) Logical and or in [hideif] (1997) Advice needed. (1998)