[Zope] variable passing in DTML

Small Business Services toolkit at magma.ca
Wed Dec 10 14:15:45 EST 2003


Hara wrote:
> Is there an elegant way of passing a variable from one DTML method to
another DTML method without using a form?
> I have a page with many images that when I click on an image I like to
pass the image name to the next page.


if your images are set up with standard html linking then you can pass
parameters as you do with any html link:

eg.

<a href="someDTMLroutine?fielda=valuea&fieldb=valueb"><img...></a>

Then, in the dtml routine 'someDTMLroutine' you can access the variables as
follows:

<dtml-var "REQUEST['fielda']">
or
<dtml-var fielda>


HTH

Jonathan





More information about the Zope mailing list