Reload adding to cart

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39174
interpreted = N
texte = Hello again, On my found_items (or results) page I also have my shopping cart. When someone goes to add an item from the found items it refreshes the results page and adds the item to the cart. My problem is that all the variable values are still in place (and need to be I think) so when a reload is done all the previous actions are done once again.This means that if someone adds something to the cart, then does a reload/refresh, then that item is added once more. (and so on)How do people get around this? I tried a formed based link instead but it did not work... same thing.Some how I need to delete the appropriate (shop=add) variable after the page is loaded. so a reload doesn't show that code.any ideas? this is what is in my URL: xxx.xxx.xxx.xxx.results.html?cart=321161611413097&shop=add&theSKU=10-M&action=cat&keywords=7&y=3714This is the code that adds an item: [showif [shop]=add] [addlineitem cart=[cart]&db=admin/products.db&sku=[url][theSKU][/url]][/addlineitem][/showif] Thanks, signed, confused. -- Donovan D. Brooke Systems Administrator/ Assc. Art Director Epsen Hillmer Graphics I know I'm making progress when I look at the questions I have asked in the past and think to myself... how stupid was that ------------------------------------------------------------- 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:

    
  1. Re: Reload adding to cart (Donovan Brooke 2001)
  2. Re: Reload adding to cart (Maurice Rickard 2001)
  3. Re: Reload adding to cart (Donovan Brooke 2001)
  4. Re: Reload adding to cart (John Peacock 2001)
  5. Re: Reload adding to cart (Donovan Brooke 2001)
  6. Re: Reload adding to cart (Donovan Brooke 2001)
  7. Re: Reload adding to cart (John Peacock 2001)
  8. Re: Reload adding to cart (Donovan Brooke 2001)
  9. Re: Reload adding to cart (Donovan Brooke 2001)
  10. Re: Reload adding to cart (Maurice Rickard 2001)
  11. Reload adding to cart (Donovan Brooke 2001)
Hello again, On my found_items (or results) page I also have my shopping cart. When someone goes to add an item from the found items it refreshes the results page and adds the item to the cart. My problem is that all the variable values are still in place (and need to be I think) so when a reload is done all the previous actions are done once again.This means that if someone adds something to the cart, then does a reload/refresh, then that item is added once more. (and so on)How do people get around this? I tried a formed based link instead but it did not work... same thing.Some how I need to delete the appropriate (shop=add) variable after the page is loaded. so a reload doesn't show that code.any ideas? this is what is in my URL: xxx.xxx.xxx.xxx.results.html?cart=321161611413097&shop=add&theSKU=10-M&action=cat&keywords=7&y=3714This is the code that adds an item: [showif [shop]=add] [addlineitem cart=[cart]&db=admin/products.db&sku=[url][theSKU][/url]][/addlineitem][/showif] Thanks, signed, confused. -- Donovan D. Brooke Systems Administrator/ Assc. Art Director Epsen Hillmer Graphics I know I'm making progress when I look at the questions I have asked in the past and think to myself... how stupid was that ------------------------------------------------------------- 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/ Donovan Brooke

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 tracking (1997) WebCatalog2 Feature Feedback (1996) Re:trouble (1997) Reminder for beta testers (2000) Migrating to NT (1997) random .inc files pulled and placed (2002) osascript help needed (2006) simple answer? [hideif] (1997) [WebDNA] ImageMagick code (2013) HTML Mail & Line breaks... (2004) [append] and SSL (1997) WebCatalog for Postcards ? (1997) japanese characters (1997) NEW INFO: I'm stuck: Can't open order file.Ignoring[OrderFile] context (2000) Closing Databases (1998) simple forum/bboard (2004) AppleScript question (1997) WebDNA Quick Reference (Reserved Words) (2000) check out page (SSL) *still* not loading on Netscape 4.0+ (1999) Date Range search (1997)