[Zope] I want to assign the values of parameters in a form to another parameter in the same form?

Aaron Williamson aaronw@c.ict.om.org
Thu, 13 Jul 2000 09:37:33 +0100


Sean G Richards wrote:

> Dear Zope list,
>     I want to cat the values of parameters, all strings, in a form to
> another parameter in the same form.  How would I go about doing this
> using dtml?

I tested using this:

<dtml-call "REQUEST.set('foo','this is a string')">
<dtml-call "REQUEST.set('bar','so is this')">
<dtml-call "REQUEST.set('foobar',foo+bar)">

and it worked, so I guess you could just use

<dtml-call "REQUEST.set('all_params', param1+param2+etc...>

Is that what you wanted?

--Aaron