Thomas B. Passin writes:
From: "Thomas B. Passin" <tpassin@mitretek.org> To: <zope@zope.org> Subject: Re: [Zope] Converting REQUEST style lists into real lists Date: Tue, 24 Jul 2001 10:38:58 -0400
[Albert Ting]
Tomek Giela writes:
From: Tomek Giela <zope@server.imagination.com.pl> To: zope@zope.org Subject: [Zope] Converting REQUEST style lists into real lists Date: Tue, 24 Jul 2001 04:19:53 +0000
When you put into your form:
<input type="checkbox" name="varia" value="1"> <input type="checkbox" name="varia" value="2"> <input type="checkbox" name="varia" value="3"> <input type="checkbox" name="varia" value="4"> <input type="checkbox" name="varia" value="5"> <input type="checkbox" name="varia" value="6">
and then select first three of them and submit that form, you'll get in form "action" document:
<dtml-var varia>
displayed as: ['1','2','3']
Is there an easy way to convert 'varia' into a list?
That ***is*** a list, and you can feed it to <dtml-in>
Cheers,
Tom P
Yes, that is a list, but not the list I'm looking for. What I want is an exhaustive list. If the person selected every other checkbox in the above example, starting with the first one, I want zope to return a six element list like below. ['1','','3','','5',''] Thanks, Albert