2
I need the property name="q1"
generates a sequence, like this:
<textarea name="q1"></textarea>
<textarea name="q2"></textarea>
<textarea name="q3"></textarea>
.
.
. <!-- // Até -->
<textarea name="q20"></textarea>
My code below:
forEach($resultado as $y){ ?>
<label class="fs-field-label fs-anim-upper" for="q1"><?php echo $y['ipco_descr_item']; ?></label>
<textarea rows="3" cols="30" class="fs-anim-lower" id="q1" **name="q1"** placeholder="Resposta"> </textarea>
<div id="resposta"></div>
<?php
}
Wants to generate several
<textarea>
each with its ownqx
? This number comes from where? do$resultado
that is being iterated?– Sergio