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:

restarting service remotely on NT (1997) [searchString] (1997) Cart/Cookie question (2005) Emailer help....! (1997) Press Release hit the NewsWire!!! (1997) FAX orders (1996) WebCatalog Features (1997) [math] are you there? (1999) WebCatalog NT beta 18 now available (1997) [date format] w/in sendmail (1997) WebCat2 - storing unformatted date data? (1997) WebTen? (1997) WCS Newbie question (1997) It just Does't add up!!! (1997) Cancel Subscription (1996) License (2003) Protect vs Authenicate (1997) More DateMath problems (1997) Re:quit command on NT (1997) Any WebCatalog Server providers in Seattle? (1998)