Re: second question of the day...

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57622
interpreted = N
texte = Thanks!!! this was good, I'm on 4.5 as well so this method worked well for me. thanks!-dylan On May 3, 2004, at 2:47 PM, Clint Davis wrote: > 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/ > ------------------------------------------------------------- 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)
Thanks!!! this was good, I'm on 4.5 as well so this method worked well for me. thanks!-dylan On May 3, 2004, at 2:47 PM, Clint Davis wrote: > 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/ > ------------------------------------------------------------- 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/ Dylan Wood

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:

Emailer (1998) Interfacing WC with mail server (1998) [Applescript] (2000) [ShowNext] (1997) Kaaaaahhhhhhhnnnnnnn! (1997) [include ...] behavior (1997) Explorer 3.0 (1997) Problem (1997) deerfield/wingate server (2004) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Dark Horse Comics success story (1997) [PHP3] php vs WebCatalog (2000) Lookup & Form Variables (2000) Hyperboard users wanting a quoted message (1998) Email (1998) HELP WITH DATES (1997) What changes does $purchase make? (1998) Emailer setup (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) (2000)