[Zope] Checkboxes in dtml and external methods

Phil Harris phil@media-1.ml.uwcm.ac.uk
Tue, 20 Apr 1999 12:23:33 +0100


Hi all

I have a DTML form ahich looks, simplified version, like this:

<form action="receiver" method=post>
<input type=checkbox name=cb>option 1
<input type=checkbox name=cb>option 2
<input type=checkbox name=cb>option 3
<input type=checkbox name=cb>option 4
<input type=checkbox name=cb>option 5

<input type=submit name=ok value=ok>
</form>

when this form is submitted I need, in 'receiver', to pass the multiple
values of 'cb' through to an external method.

My question is , How?

I've tried def'ing the function to look like this

def f(self, cb=cb):
    for a in cb:
        print a

but this only tells me that cb is a selection, hmm.

Any ideas?

TIA