numero = 11424
interpreted = N
texte = >I can't find out how to use the [CART] tag. Isn't it supposed to generate a>unique number for a visitor and then stick to this visitor?No, [cart] generates a unique number, but it only sticks where you tell itto stick. You have to tell it to stick to your users, and the way you dothat is to assign the cart value to a variable.On the page that generates the first cart value (this is the 'entry page'to your chat room), you have to put cart=[cart], because that lets you passthat cart value to the next page your users goes to. The cart value isstored in a variable named cart when you do this.>I want to create a chat and use the [CART] for tracking each visitor, but>every time a issue a [CART] a new number is generated.>>Must the [CART] value be stored in a .db with a special name or something?No, the cart value is stored in a variable, not a database ... and youdon't want to generate a new one on each page, you only want to geterate anew one on your 'entry page'. From then on, you want to pass the originalcart value from page to page. Just don't pass it to the entry page again,or you won't get a new cart value, you will simply be continuing to passthe same cart value that you created in the beginning.You can pass the cart value to any template simply by putting cart=[cart]inside every URL on the page, like this:Go to some templateIt doesn't matter if the URL is a showpage or append or delete or replaceor search, all that matters is that cart=[cart] appears in the string - inthe proper syntax, of course. If it's not the first set of parametersfollowing the question mark, then it will have to have an ampersand (&) infront of it ...Make sure to put cart=[cart] into your forms, too, by using a hidden forminput field like this:The key thing to remember is that you should put cart=[cart] into every URLor form where the user might need the cart value to continue using yourchat. Because as soon as your user click a hyperlink or form button thatdoesn't have cart=[cart] in it, that user's cart value is gone, and acompletely new cart value will be created when that user visits a new pagewith a [cart] tag on it.Sincerely, Ken Grome ..... ken@iav.comhttp://usarea.net/home.html
Associated Messages, from the most recent to the oldest:
>I can't find out how to use the [cart] tag. Isn't it supposed to generate a>unique number for a visitor and then stick to this visitor?No, [cart] generates a unique number, but it only sticks where you tell itto stick. You have to tell it to stick to your users, and the way you dothat is to assign the cart value to a variable.On the page that generates the first cart value (this is the 'entry page'to your chat room), you have to put cart=[cart], because that lets you passthat cart value to the next page your users goes to. The cart value isstored in a variable named cart when you do this.>I want to create a chat and use the [cart] for tracking each visitor, but>every time a issue a [cart] a new number is generated.>>Must the [cart] value be stored in a .db with a special name or something?No, the cart value is stored in a variable, not a database ... and youdon't want to generate a new one on each page, you only want to geterate anew one on your 'entry page'. From then on, you want to pass the originalcart value from page to page. Just don't pass it to the entry page again,or you won't get a new cart value, you will simply be continuing to passthe same cart value that you created in the beginning.You can pass the cart value to any template simply by putting cart=[cart]inside every URL on the page, like this:[cart]>Go to some templateIt doesn't matter if the URL is a showpage or append or delete or replaceor search, all that matters is that cart=[cart] appears in the string - inthe proper syntax, of course. If it's not the first set of parametersfollowing the question mark, then it will have to have an ampersand (&) infront of it ...Make sure to put cart=[cart] into your forms, too, by using a hidden forminput field like this:[cart]>The key thing to remember is that you should put cart=[cart] into every URLor form where the user might need the cart value to continue using yourchat. Because as soon as your user click a hyperlink or form button thatdoesn't have cart=[cart] in it, that user's cart value is gone, and acompletely new cart value will be created when that user visits a new pagewith a [cart] tag on it.Sincerely, Ken Grome ..... ken@iav.comhttp://usarea.net/home.html
Kenneth Grome
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...