Re: A [Loop][APPEND][URL] ... [/URL][/APPEND]/Loop] Question
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 31926
interpreted = N
texte = Hi Mike,Thanks for the clarification and the tip on the cookies. I happen to have a use for it right now.BrianDigital Gear>Hey, while we're at it, here's a little trick I've been using lately that>involves interpretation of ampersands, but in a different way. Have you>ever wanted to store multiple variables in a cookie and retrieve them later?>Let's go a step further and encrypt the data in the cookie, making it more>secure. Since ampersands are illegal characters in cookies, we'll [url]-ize>the encrypted string to eliminate the ampersand problem. Here's what you>do.>[setcookie name=blah&value=[url][url][encrypt>seed=blah]XX=[url][XX][/url]&YY=[url][YY][/url]&ZZ=[url][ZZ][/url][/encrypt]>[/url][/url]]>Notice the doubling of the [url] context to eliminate the ampersands>completely. Then, to retrieve your data from the cookie, a simple multiple>text variable context is used.>[text multi=t][decrypt seed=blah][getcookie blah][/decrypt][/text]>The ampersands are interpreted properly in the multi text context and the>values for [XX], [YY], and [ZZ] are returned. Works like a champ and it's>fun at parties too.>>Enjoy,>Mike>-------------------------------------------------------------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:
Hi Mike,Thanks for the clarification and the tip on the cookies. I happen to have a use for it right now.BrianDigital Gear>Hey, while we're at it, here's a little trick I've been using lately that>involves interpretation of ampersands, but in a different way. Have you>ever wanted to store multiple variables in a cookie and retrieve them later?>Let's go a step further and encrypt the data in the cookie, making it more>secure. Since ampersands are illegal characters in cookies, we'll [url]-ize>the encrypted string to eliminate the ampersand problem. Here's what you>do.>[setcookie name=blah&value=[url][url][encrypt>seed=blah]XX=[url][XX][/url]&YY=[url][YY][/url]&ZZ=[url][ZZ][/url][/encrypt]>[/url][/url]]>Notice the doubling of the [url] context to eliminate the ampersands>completely. Then, to retrieve your data from the cookie, a simple multiple>text variable context is used.>[text multi=t][decrypt seed=blah][getcookie blah][/decrypt][/text]>The ampersands are interpreted properly in the multi text context and the>values for [XX], [YY], and [ZZ] are returned. Works like a champ and it's>fun at parties too.>>Enjoy,>Mike>-------------------------------------------------------------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/
Brian Wallace
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:
WebCat2 - [include] tags (1997)
webcat/chat/javascript/IE on windows only problem - long,code included - nevermind (2002)
Saving/Looking Up customer numbers (1998)
Requiring that certain fields be completed (1997)
can WC render sites out? (1997)
Shopping carts and reloading pages (1997)
dreamweaver (2000)
request for comment tag (1998)
Separate SSL Server (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
TCPConnect Help (2003)
WebCat2b13MacPlugIn - syntax to convert date (1997)
TCPConnect (2002)
using showpage and showcart commands (1996)
[LOOKUP] (1997)
New Site Announcement: MusicianStore.com goes live with (1998)
RE: Formulas.db + Users.db (1997)
Wierd thing in ViewOrder.tpl (1999)
# fields limited? (1997)
Sort Order on a page search (1997)