Hi all, I'm sure somebody more clever than me can work this out. I'm getting results back from a form (checkboxes), so I never know how many items I am going to get back. What I want to be able to do is iterate over the contents of REQUEST.form to be able to process each item, no matter how many results I get from a form. Is there a way of doing this (I'm definitely sure there is but I'm not seeing it), or perhaps there is a better way. Thanks in advance, David
At 09:05 AM 5/23/01 +0100, David Legg wrote:
Hi all,
I'm sure somebody more clever than me can work this out. I'm getting results back from a form (checkboxes), so I never know how many items I am going to get back. What I want to be able to do is iterate over the contents of REQUEST.form to be able to process each item, no matter how many results I get from a form. Is there a way of doing this (I'm definitely sure there is but I'm not seeing it), or perhaps there is a better way.
I found this in the mailing list archives for you. Thanks to Tom P. <ul><dtml-in "REQUEST.form.keys()"> <li><dtml-var sequence-item> values:<ul> <dtml-in "REQUEST.form[_['sequence-item']]"> <li><dtml-var sequence-item><br> </dtml-in> </ul> </dtml-in> </ul> Regards, Diny DIVA, Faculty of Veterinary Medicine Utrecht University, The Netherlands http://www.vet.uu.nl
Check out: /zopeDemos/demoFolder/formData/ in your zope installation. Dan David Legg wrote:
Hi all,
I'm sure somebody more clever than me can work this out. I'm getting results back from a form (checkboxes), so I never know how many items I am going to get back. What I want to be able to do is iterate over the contents of REQUEST.form to be able to process each item, no matter how many results I get from a form. Is there a way of doing this (I'm definitely sure there is but I'm not seeing it), or perhaps there is a better way.
Thanks in advance,
David
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Wed, May 23, 2001 at 09:21:56AM -0500, Daniel G. Rusch wrote:
Check out:
/zopeDemos/demoFolder/formData/
in your zope installation.
huh? in my 2.3.x installation there's nothing like that... -- charlie blanchard http://baldguru.com/ LosAngeles area Zope Users Group http://lazug.org
Charlie, I'm running 2.3.1 (and as far as I can remember there has been a demo folder) the zopeDemos is off the root folder. Dan Charlie Blanchard wrote:
On Wed, May 23, 2001 at 09:21:56AM -0500, Daniel G. Rusch wrote:
Check out:
/zopeDemos/demoFolder/formData/
in your zope installation.
huh? in my 2.3.x installation there's nothing like that...
-- charlie blanchard http://baldguru.com/ LosAngeles area Zope Users Group http://lazug.org
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Charlie Blanchard -
Daniel G. Rusch -
David Legg -
Diny van der Donk