[Zope-dev] how do i check if it is an array
Morten W. Petersen
morten@esol.no
13 Nov 2000 13:22:44 +0100
[Veiko Schnabel]
| how do i check out if any of my fields are arrays or strings
| is there a function like php: is_array()
I can't think of any clean way to do this; zope developers, why isn't
the type() function available from DTML?
On the other hand, you can explicitly cast all your form fields to be
sequence-like objects (in other words, an array), by doing this:
<input type="text" name="field1:list">
HTH.
-Morten