Tom Brown wrote:
> What is a good way to pass a single string variable or list from one
> Rivet doc to another?
>
> Using a hidden form variable, GET/POST and var get, is convoluted to me.
Welcome to web programming;-)
You could create some "macros" to make things easier, like:
proc hidden {key val} {
puts "<input ... name = $key val = $val ....>"
}
Keep in mind that someone could observe what's happening and substitute
their own values for things passed through their browser.
> Declaring a global variable in the sending page doesn't work.
That won't really work because the browser might hit another apache
process the next time around which does not have that global variable.
> Placing
> the variable in a file, then reading the file in the next doc, works but
> seems heavy handed. I suspect that I'm overlooking something simple.
Not really. The web is stateless, and making web apps stateful is a
pain in the neck. You can use a database instead of a flat file - that
buys you something in terms of speed and reliability, but the concept is
pretty much the same.
--
David N. Welton
- http://www.dedasys.com/davidw/
Linux, Open Source Consulting
- http://www.dedasys.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]