Use the in tag: <dtml-in form_time_in> <dtml-var sequence-item> </dtml-in> ----- Original Message ----- From: "zope" <zope@isp.lu> To: <zope@zope.org> Sent: Tuesday, October 03, 2000 7:10 AM Subject: [Zope] how to access the items of an array...
Hi
In a form, I defined an array variable as follows:
<dtml-in "_.range(1, _.string.atoi(form_numpages), 1)"> <tr align="center" valign="middle"> <td><dtml-var sequence-number></td> <td><input type="text" name="form_time_in" size="6" maxlength="4"></td> </tr> </dtml-in>
After submitting the form, <dtml-var form_time_in> gives me following result:
['112', 'sef', 'fg', '23', 'iuiu', 'tz', 'fgh', 'fgh']
My question is now how to access the different items of that array?
Thanks a lot for your help.
Marc
_______________________________________________ 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 )