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]ingor [replace]ing. Since I'm using WebDNA 4.5, I don't have the luxury of thenew 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:
I don't create my unique identifier (SKU in your case) until I'm [append]ingor [replace]ing. Since I'm using WebDNA 4.5, I don't have the luxury of thenew 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:
Languages (1997)
WCS Newbie question (1997)
Replacing a Word (1999)
[exclusivelock] (was:several people...) (2001)
Using WC for Bulk Emailings (1997)
PCS Customer submissions ? (1997)
RE: Adding headers to email (1997)
Bug Report, maybe (1997)
WebCatalog Upgrade Pricing? (1997)
[LOOKUP] (1997)
shipCost (1998)
range searching (1998)
Tech question about web dna actions (1998)
[OT] XServe OS (2007)
Error Msg (1997)
PCS Frames (1997)
feature request-- [epoch] (2004)
How far do [showif]s go? (1997)
Merchant and WebCat 3.0 (1998)
[LOOKUP] (1997)