Re: Problems when user hit back
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 34500
interpreted = N
texte = > > I deal with it by adding a rn=[random] to all of my links. On the>> shopping cart page I set a header to the rn value the first time>> through. Then on subsequent hits to that page I check to see if rn>> equals my header value if so then the user either hit reload or back>> so I don't add the item to the cart again. For every hit to the cart>> page that has a unique rn value I set my header to that value to> > check on the next hit.Here is the code I use for this technique:[showif [action]=Add][text]oldRandom=[orderfile cart=[cart]][header20][/orderfile][/text][hideif [oldRandom]=[rn]][addlineitem cart=[cart]&db=^Editions.db&sku=[SKU]]quantity=[qty][/addlineitem][SetHeader cart=[cart]&db=^editions.db]Header20=[rn][/SetHeader][/hideif][/showif]Hope that helps,-- Sam LewisSamLewis.comTel: 626-852-0956 Fax: 916-404-5698-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
> > I deal with it by adding a rn=[random] to all of my links. On the>> shopping cart page I set a header to the rn value the first time>> through. Then on subsequent hits to that page I check to see if rn>> equals my header value if so then the user either hit reload or back>> so I don't add the item to the cart again. For every hit to the cart>> page that has a unique rn value I set my header to that value to> > check on the next hit.Here is the code I use for this technique:[showif [action]=Add][text]oldRandom=[orderfile cart=[cart]][header20][/orderfile][/text][hideif [oldRandom]=[rn]][addlineitem cart=[cart]&db=^Editions.db&sku=[SKU]]quantity=[qty][/addlineitem][SetHeader cart=[cart]&db=^editions.db]Header20=[rn][/SetHeader][/hideif][/showif]Hope that helps,-- Sam LewisSamLewis.comTel: 626-852-0956 Fax: 916-404-5698-------------------------------------------------------------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://search.smithmicro.com/
Sam Lewis
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:
WebMerchant (2000)
Quit revisited (1997)
Remove WebDNA context (2001)
Server crash (1997)
Database Updates (1997)
Question About XML Style Syntax (2000)
Emailer (WebCat2) (1997)
Emailer Chokes on bad address (1997)
dos performance (1998)
Emailer problems. (1998)
Before I Can Begin . . . (1998)
FW: WebDNA-Talk searchable? (1997)
Summ=T Problem (1997)
WebCat2: multiple currency support (1997)
WC2.0 Memory Requirements (1997)
Re:quit command on NT (1997)
[isfile] ? (1997)
Running 2 two WebCatalog.acgi's (1996)
Code database (1998)
encrypted query string trouble on OSX (2001)