[eluser]Symcrapico[/eluser]
[quote author="Paulo Eduardo" date="1194689333"]Pygon,
If i use a array like you say how i do to repopulate the form if some data as posted wrong?
`cuz i try something like that:
Code:
$this->validation->username[0]
and they didn`t work
if have you a solution for that i will be Grateful
Thanks a lot
Paulo Eduardo[/quote]
Anyone has a head up on this? Im facing the same problem and I have no idea on how to repopulate my form.
Here my simplified form:
Code:
<div id="formJoueur" class="formJoueur">
<h2 class="txtinsc">Informations Joueurs <span id="no_joueur">1</span></h2>
<label>Nom et prénom :</label><input name="nomJoueur[]" value="" maxlength="60" size="65" type="text">
<br>
<label>No. Chandail :</label><input name="noChandail[]" value="" maxlength="3" size="3" type="text">
<br>
<label>No. passeport :</label><input name="noPasseport[]" value="" maxlength="12" size="15" type="text">
<br>
<hr>
</div>
<div class="formJoueur">
<h2 class="txtinsc">Informations Joueurs <span id="no_joueur">2</span></h2>
<label>Nom et prénom :</label><input name="nomJoueur[]" value="" maxlength="60" size="65" type="text">
<br>
<label>No. Chandail :</label><input name="noChandail[]" value="" maxlength="3" size="3" type="text">
<br>
<label>No. passeport :</label><input name="noPasseport[]" value="" maxlength="12" size="15" type="text">
<br>
<hr>
</div>
As you can see, I have 3 dynamic fields that I need to validate and repopulate, nomJoueur[], noChandail[] and noPasseport[].
I cant wait to see a solution for that!
Thanks