Re: Carts & Refering URLs
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15420
interpreted = N
texte = At 10:32 AM -0800 12/5/97, Christer Olsson is rumored to have typed:> Hmmm... would this really solve the problem? Wouldn't a>> [hideif [referer]^http://www.mydomain.com]> Please go to our starting page> [/hideif]>> on each of the detail pages be a better way to go?Only if you want and need your customer to go to your home page to startshopping.On my site, I want people to be able to come in via any bookmark withoutseeing an error message. I don't want them to have to start lookingthrough my site for something they thought they were linking to directly.On the top of each template, I have an INCLUDE that checks to see if thereferring page is from my site. If it isn't, I assign a unique number to avariable using a MATH context[MATH SHOW=f]NEWCART=[DATE][TIME][RANDOM][/MATH]If it is, I set the variable to the incoming cart number[MATH SHOW=f]NEWCART=[CART][/MATH]Then, in each HREF or FORM, I say CART=[MATH]NEWCART[/MATH]Works great.MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Associated Messages, from the most recent to the oldest:
At 10:32 AM -0800 12/5/97, Christer Olsson is rumored to have typed:> Hmmm... would this really solve the problem? Wouldn't a>> [hideif [referer]^http://www.mydomain.com]> Please go to our starting page> [/hideif]>> on each of the detail pages be a better way to go?Only if you want and need your customer to go to your home page to startshopping.On my site, I want people to be able to come in via any bookmark withoutseeing an error message. I don't want them to have to start lookingthrough my site for something they thought they were linking to directly.On the top of each template, I have an INCLUDE that checks to see if thereferring page is from my site. If it isn't, I assign a unique number to avariable using a MATH context[MATH SHOW=f]NEWCART=
[date][time][random][/MATH]If it is, I set the variable to the incoming cart number[MATH SHOW=f]NEWCART=
[cart][/MATH]Then, in each HREF or FORM, I say CART=
[math]NEWCART[/MATH]Works great.MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Michael Winston
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:
WebCat B13 Mac CGI -- Frames question (1997)
Proper file locations (1997)
[url] - question (2000)
textarea input- nevermind (2002)
WebCat2b13MacPlugIn - [include] (1997)
database problems (1999)
WebMerchant/Macauthorize Suggestions? (1997)
[OrderFile] error (help) (1999)
File Uploads: WebCat/SiteEdit (1998)
SQL Error (2007)
Initiating NewCart (1997)
founditems (1998)
How does the Globals folder work? (2000)
Apache/Mod-SSL & WebCatalog (UNIX)! module bug? (2000)
videos.. yak..yak (1998)
Bug Report, maybe (1997)
referrer variable (1997)
Math (1997)
date (2002)
Database cloning- will the real -oRiGiNaL- please stand up (2003)