Re: [WebDNA] WebDNA as cgi app (was WebSite Examples)
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100137
interpreted = N
texte = Dennis J. Bonsall, Jr. wrote:>> I am talking about the SiteBuilder product. [cart] is here for the long>> haul...> > > Not sure how I missed that. I guess I was just being a little jumpy. > New owners means a new vision and future for the products, and I guess > I was thinking this could lead to some radical changes. I guess I was > thinking that perhaps you didn't like passing the cart through the URL, > and were wanting to change a fundamental function of the software. > Perhaps I'm just nervous in that regard, since the future plans for > WebDNA, while they look bright, are somewhat mysterious at this point. > I've never used the SiteBuilder before, so I guess it didn't dawn on me > that that was what you were talking about.> > Sorry for jumping the gun.> > DennisNo worries!, it was just a clarification... and no, I don't personaly like passingthe cart. :-) Google will index the cart number if it is in the URL, andit's a PITA to deal with in making sure all your links have the cart=[cart] init... not to mention it adds to the URL length (I guess I just *did* mentionthat)I still use cart however, but more with cookies.Here is one way to replace the cart=[cart] in a sitebuilder likesystem (put this at the top of the page, or [include] it at the top of thepage):** disclaimer.. I'm not sure if I've tested this with a sitebuilder type ofsystem that still contains frames! **----------[!] ** Set these variables ** [/!] [!] ** cookie session name ** [/!] [text]ses_cname=cookiename[/text] [!] ** Domain of site (use without the host (www) to ensure access of all hosts)** [/!] [text]thedomain=domain.com[/text] [!] ** set page index name ** [/!] [text]pag_name=index.html[/text][!] ** check for cart value ** [/!][if "[GETCOOKIE name=[ses_cname]]"=""] [then] [!] ** No value or doesn't exist, Setting a session cookie ** [/!] [text]cart=[cart][/text] [showif [url][!] [/!][lookup db=WebMerchant/Orders.db[!] [/!]&Value=[CART][!] [/!]&Lookinfield=CART[!] [/!]&Returnfield=CART[!] [/!]&Notfound=NF][!] [/!][/url]=[url][CART][/url]] [redirect url=[url][pag_name]?ra=[random][random][random][/url]] [/showif] [!] ** Set cart for this page, and desired expire of session here ** [/!] [SETCOOKIE name=[ses_cname]&value=[cart][!] [/!]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+1[/math][/format][!] [/!] [math time]{[time]}+{05:00:00}[/math] GMT[!] [/!]&path=/[!] [/!]&domain=[thedomain]] [/then] [else] [!] ** The cookie has a value, setting "CART" for this page if it has not been purchased already ** [/!] [showif [url][!] [/!][lookup db=WebMerchant/Orders.db[!] [/!]&Value=[GETCOOKIE name=[ses_cname]][!] [/!]&Lookinfield=CART[!] [/!]&Returnfield=CART[!] [/!]&Notfound=NF][!] [/!][/url]=[url][GETCOOKIE name=[ses_cname]][/url]] [!] ** This cart was found to be purchased, proceeding to reset users session cookie, set desired expire here** [/!] [text]cart=[cart][/text] [SETCOOKIE name=[ses_cname][!] [/!]&value=[cart][!] [/!]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+1[/math][/format][!] [/!] [math time]{[time]}+{05:00:00}[/math] GMT[!] [/!]&path=/[!] [/!]&domain=[thedomain]] [redirect url=[url][pag_name]?ra=[random][random][random][/url]] [/showif] [!] ** setting the cart value! ** [/!] [text]cart=[GETCOOKIE name=[ses_cname]][/text] [/else][/if]---------- From this point further down on each "page".. a fresh "[cart]", thathasn't been purchased, should be available to access the orderfile.[orderfile cart=[cart]]Cheers!,Donovan-- Donovan D. Brooke - VP PH/FAX: 1 (608) 291-2024WebDNA Software Corporation 16192 Coastal Highway Lewes, DE 19958
Associated Messages, from the most recent to the oldest:
Dennis J. Bonsall, Jr. wrote:>> I am talking about the SiteBuilder product.
[cart] is here for the long>> haul...> > > Not sure how I missed that. I guess I was just being a little jumpy. > New owners means a new vision and future for the products, and I guess > I was thinking this could lead to some radical changes. I guess I was > thinking that perhaps you didn't like passing the cart through the URL, > and were wanting to change a fundamental function of the software. > Perhaps I'm just nervous in that regard, since the future plans for > WebDNA, while they look bright, are somewhat mysterious at this point. > I've never used the SiteBuilder before, so I guess it didn't dawn on me > that that was what you were talking about.> > Sorry for jumping the gun.> > DennisNo worries!, it was just a clarification... and no, I don't personaly like passingthe cart. :-) Google will index the cart number if it is in the URL, andit's a PITA to deal with in making sure all your links have the cart=
[cart] init... not to mention it adds to the URL length (I guess I just *did* mentionthat)I still use cart however, but more with cookies.Here is one way to replace the cart=
[cart] in a sitebuilder likesystem (put this at the top of the page, or
[include] it at the top of thepage):** disclaimer.. I'm not sure if I've tested this with a sitebuilder type ofsystem that still contains frames! **----------
[!] ** Set these variables ** [/!]
[!] ** cookie session name ** [/!]
[text]ses_cname=cookiename[/text]
[!] ** Domain of site (use without the host (www) to ensure access of all hosts)** [/!]
[text]thedomain=domain.com[/text]
[!] ** set page index name ** [/!]
[text]pag_name=index.html[/text]
[!] ** check for cart value ** [/!][if "[GETCOOKIE name=[ses_cname]]"=""] [then]
[!] ** No value or doesn't exist, Setting a session cookie ** [/!]
[text]cart=
[cart][/text] [showif
[url][!] [/!][lookup db=WebMerchant/Orders.db
[!] [/!]&Value=
[cart][!] [/!]&Lookinfield=CART
[!] [/!]&Returnfield=CART
[!] [/!]&Notfound=NF]
[!] [/!][/url]=
[url][cart][/url]] [redirect url=
[url][pag_name]?ra=
[random][random][random][/url]] [/showif]
[!] ** Set cart for this page, and desired expire of session here ** [/!] [SETCOOKIE name=[ses_cname]&value=
[cart][!] [/!]&expires=[format days_to_date %A, %d-%b-%Y]
[math]{
[date]}+1[/math][/format]
[!] [/!] [math time]{
[time]}+{05:00:00}[/math] GMT
[!] [/!]&path=/
[!] [/!]&domain=[thedomain]] [/then] [else]
[!] ** The cookie has a value, setting "CART" for this page if it has not been purchased already ** [/!] [showif
[url][!] [/!][lookup db=WebMerchant/Orders.db
[!] [/!]&Value=[GETCOOKIE name=[ses_cname]]
[!] [/!]&Lookinfield=CART
[!] [/!]&Returnfield=CART
[!] [/!]&Notfound=NF]
[!] [/!][/url]=
[url][GETCOOKIE name=[ses_cname]][/url]]
[!] ** This cart was found to be purchased, proceeding to reset users session cookie, set desired expire here** [/!]
[text]cart=
[cart][/text] [SETCOOKIE name=[ses_cname]
[!] [/!]&value=
[cart][!] [/!]&expires=[format days_to_date %A, %d-%b-%Y]
[math]{
[date]}+1[/math][/format]
[!] [/!] [math time]{
[time]}+{05:00:00}[/math] GMT
[!] [/!]&path=/
[!] [/!]&domain=[thedomain]] [redirect url=
[url][pag_name]?ra=
[random][random][random][/url]] [/showif]
[!] ** setting the cart value! ** [/!]
[text]cart=[GETCOOKIE name=[ses_cname]][/text] [/else][/if]---------- From this point further down on each "page".. a fresh "
[cart]", thathasn't been purchased, should be available to access the orderfile.[orderfile cart=
[cart]]Cheers!,Donovan-- Donovan D. Brooke - VP PH/FAX: 1 (608) 291-2024WebDNA Software Corporation 16192 Coastal Highway Lewes, DE 19958
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:
Email Formatting and Encryption (1998)
A Global Variable (1997)
Running 2 two WebCatalog.acgi's (1996)
Emailer setup (1997)
typhoon... (1997)
WebCatalog NT beta 18 now available (1997)
FTP Problem (2005)
Stumped (1999)
[WebDNA] WebDNA on LiveCD ... (2008)
Almost a there but..bye bye NetCloak (1997)
Header info in content (1998)
Clean Code: Rules for inserting keyboard returns? (1997)
WebCat2 - many [carts] on one template page? (1997)
sort problems....bug or brain fart? (1997)
WebCatalog can't find database (1997)
popmenus database and line items (2000)
using showpage and showcart commands (1996)
Server Load (2000)
Encyption mail was Suggestions for Topics ... (1998)
emailer settings and control questions (1997)