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:

If Else Statement... (2004) emailer (1997) [writefile] (1997) weird cart #? (1999) [COMMITDATABASE FileName] (2000) test (2000) Include a big block of text (1997) Re1000001: Setting up shop (1997) More on the email templates (1997) SKU lookup (1997) autosensing lanague selection (1997) WebDNA Quick Reference (Reserved Words) (2000) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Search/sort in URL Was: GuestBook example (1997) Dynamic Pop up menu? (1997) [Sum] function? (1997) installing webcatalog problem. HELP! (1998) [format xs] freeze (1997) Math with Time (1997) Help! WebCat2 bug (1997)