Re: chicken / egg::purchase / setheader

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46547
interpreted = N
texte = I would take out the purchase command and use the purchase context instead on thanks.html:[purchase cart=[cart]]The good general rule of thumb is to always use contexts in place of commands when you can since people can tinker with the values in the URL for commands.On the setheader, place it above the purchase context.GK > I have a thanks page which will be the recipient of the cart's formal > PURCHASE command. In other words, I'm hitting it like this: > > foo.com/thanks.html?command=purchase&cart=cart&db=database.db > > I also need to run a [setheader] on the cart in question. This action > also has to be built into the thanks page. My question is, where will > the cart be when I get there? > > Either (1) it will be in the Shopping Carts folder, because code WITHIN > the page is hit before the command=purchase is used; or (2) it will be > in either Orders or Problems, because the command=purchase will be > followed before any code inside the page is followed. > > Anybody know which it is? > > AW ------------------------------------------------------------- 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: chicken / egg::purchase / setheader (Andrew Willett 2002)
  2. Re: chicken / egg::purchase / setheader (Donovan Brooke 2002)
  3. Re: chicken / egg::purchase / setheader (Larry Goodhew 2002)
  4. Re: chicken / egg::purchase / setheader (Andrew Willett 2002)
  5. Re: chicken / egg::purchase / setheader (Gary Krockover 2002)
  6. chicken / egg::purchase / setheader (Andrew Willett 2002)
I would take out the purchase command and use the purchase context instead on thanks.html:[purchase cart=[cart]]The good general rule of thumb is to always use contexts in place of commands when you can since people can tinker with the values in the URL for commands.On the setheader, place it above the purchase context.GK > I have a thanks page which will be the recipient of the cart's formal > PURCHASE command. In other words, I'm hitting it like this: > > foo.com/thanks.html?command=purchase&cart=cart&db=database.db > > I also need to run a [setheader] on the cart in question. This action > also has to be built into the thanks page. My question is, where will > the cart be when I get there? > > Either (1) it will be in the Shopping Carts folder, because code WITHIN > the page is hit before the command=purchase is used; or (2) it will be > in either Orders or Problems, because the command=purchase will be > followed before any code inside the page is followed. > > Anybody know which it is? > > AW ------------------------------------------------------------- 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/ Gary Krockover

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:

Can GMT be called from the OS ? (2004) multiple skus (2000) can you take a look #2 try (2003) [WebDNA] Date: header on emails - timezone problem perhaps (emai) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Follow-Up to: Removing [showif] makes a big difference in speed (1997) redirect with frames (1997) SKU (1997) WebCatalog can't find database (1997) For those of you not on the WebCatalog Beta... (1997) Multiple Passwords (1997) unable to launch acgi in WebCat (1997) Protect vs Authenicate (1997) XX shipping days til christmas (2002) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Finding max value for a field (1997) FORMS!! (2001) Text data with spaces in them... (1997) [LOOKUP] (1997) Setting up shop (1997)