[Zope] Passing Variables Through Multiple Forms

Milos Prudek milos.prudek@tiscali.cz
Tue, 06 Nov 2001 20:54:55 +0100


> > What is the best way to pass variables defined in one form to a second
> > form? Is there a tutorial available (couldn't find a HOW-TO).
> 
> When the variable(s) should cross just one form, and there are just a
> few variables, I do this:
> <dtml-call "REQUEST.set('name',name)">
> <dtml-call "REQUEST.set('address',address)">
> The code above must be written in the second page, which received the
> name and address from a form in the first page, and which must provide
> this data to the third page.

Ouch, I need to retract the above incorrect claims :-(

REQUEST.set modifies the current request. It is nothing more than a
singleton <dtml-let>. It sets variables within the page itself, and it
has no influence on next pages.

To carry variables from one page to another, you need to use
CoreSessionTracking product or other session tracking products. You can
also choose to use hidden form variables in cases where it does not
present a security risk.

--
Milos Prudek