Welcome Guest, Not a member yet? Register   Sign In
Validation for Dynamically Added Fields
#7

[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>&lt;input name="nomJoueur[]" value="" maxlength="60" size="65" type="text"&gt;
    <br>
    <label>No. Chandail :</label>&lt;input name="noChandail[]" value="" maxlength="3" size="3" type="text"&gt;
    <br>
    <label>No. passeport :</label>&lt;input name="noPasseport[]" value="" maxlength="12" size="15" type="text"&gt;
    <br>
    <hr>
</div>
                
<div class="formJoueur">
    <h2 class="txtinsc">Informations Joueurs <span id="no_joueur">2</span></h2>
    <label>Nom et prénom :</label>&lt;input name="nomJoueur[]" value="" maxlength="60" size="65" type="text"&gt;
    <br>
    <label>No. Chandail :</label>&lt;input name="noChandail[]" value="" maxlength="3" size="3" type="text"&gt;
    <br>
    <label>No. passeport :</label>&lt;input name="noPasseport[]" value="" maxlength="12" size="15" type="text"&gt;
    <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


Messages In This Thread
Validation for Dynamically Added Fields - by El Forum - 11-04-2007, 07:58 PM
Validation for Dynamically Added Fields - by El Forum - 11-05-2007, 01:44 AM
Validation for Dynamically Added Fields - by El Forum - 11-05-2007, 07:16 AM
Validation for Dynamically Added Fields - by El Forum - 11-05-2007, 08:17 AM
Validation for Dynamically Added Fields - by El Forum - 11-09-2007, 10:08 PM
Validation for Dynamically Added Fields - by El Forum - 11-10-2007, 12:57 PM
Validation for Dynamically Added Fields - by El Forum - 01-14-2008, 07:51 AM
Validation for Dynamically Added Fields - by El Forum - 01-14-2008, 09:48 AM
Validation for Dynamically Added Fields - by El Forum - 01-14-2008, 11:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB