[Zope-dev] how do i check if it is an array
Veiko Schnabel
v.schnabel@aperto.de
Mon, 13 Nov 2000 09:56:59 +0100
i use a form with different input-fields
like
<form method="" action="">
first place for field_1<br>
<input type="text" name="field_1"><br>
<input type="text" name="field_2"><br>
<input type="text" name="field_3"><br>
<input type="text" name="field_4"><br>
<br>
images/tables
second place for field_1<br>
<input type="text" name="field_1"><br>
</form>
at two different places on my site i offer the input into formfield
field_1
the point is that i do not know the names of that fields i will hafe 2
or 3 times on my site
when i submit this form and look for all this fields like
<dtml-in "REQUEST.form.keys()">
<dtml-var sequence-item> - ><dtml-var
"REQUEST.get(_['sequence-item'])">
</dtml-in>
i get for example the value for field_2
field_2 -> value
but field_1 is looking like
field_1 -> ['14','12']
in my opinion field_1 is an array now
how do i check out if any of my fields are arrays or strings
is there a function like php: is_array()
if someone could help me would be great
I'm not a native english speaker sorry ;-)
thanx a lot