Re: second question of the day...

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57619
interpreted = N
texte = I don't create my unique identifier (SKU in your case) until I'm [append]ing or [replace]ing. Since I'm using WebDNA 4.5, I don't have the luxury of the new tag that does this for you... [!]--- determine the current largest SKU and add one ---[/!] [text]newSKU=1[/text] [search db=my.db&neIDdatarq=find_all&deSKUsort=1&SKUtype=num&max=1] [founditems] [text]newSKU=[math][SKU]+1[/math][/text] [/founditems] [/search] [!]--- update the database using the newly created SKU ---[/!] [replace db=my.db&eqIDdatarq=[newSKU]&append=T]SKU=[newSKU][/replace] On 5/3/04 1:33 PM, "Dylan Wood" wrote: > how can i prevent someone who has successfully submitted a form, from > hitting the back button and then submit the form again. it is > replacing the same record, I guess the sku is cached? how can I stop > this? ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: second question of the day... ( Dylan Wood 2004)
  2. Re: second question of the day... ( Clint Davis 2004)
  3. second question of the day... ( Dylan Wood 2004)
I don't create my unique identifier (SKU in your case) until I'm [append]ing or [replace]ing. Since I'm using WebDNA 4.5, I don't have the luxury of the new tag that does this for you... [!]--- determine the current largest SKU and add one ---[/!] [text]newSKU=1[/text] [search db=my.db&neIDdatarq=find_all&deSKUsort=1&SKUtype=num&max=1] [founditems] [text]newSKU=[math][SKU]+1[/math][/text] [/founditems] [/search] [!]--- update the database using the newly created SKU ---[/!] [replace db=my.db&eqIDdatarq=[newSKU]&append=T]SKU=[newSKU][/replace] On 5/3/04 1:33 PM, "Dylan Wood" wrote: > how can i prevent someone who has successfully submitted a form, from > hitting the back button and then submit the form again. it is > replacing the same record, I guess the sku is cached? how can I stop > this? ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Clint Davis

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:

Sendmail and attachments? (1998) [shownext max (1997) Don't tick me off :) [elaspedtime] (1997) [ShowNext] (1997) [WebDNA] Hosting (2015) WebCat2b15MacPlugin - showing [math] (1997) upgrading (1997) cybercash with webcatalog (1999) WEBCAT HIERARCHY (1999) Trigger to restart Webcat Service (2001) [referrer] tag (1997) Online reference (1997) A multi-processor savvy WebCatalog? (1997) New command suggestion (was Modifying databasesmanually) (1997) random prob (2003) WebCat2b12--[searchstring] bug (1997) typhoon... (1997) To Err or Not Custom Error (1999) Page Breaks in Word (2003) Location of Browser Info.txt file (1997)