Bonjour,
J'ai un problème pour concaténer des champs.
J'ai ceci :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 <span> <input type="text" size="2" maxlength="2" name="identifiant1" /> <input type="text" size="2" maxlength="2" name="identifiant2" /> <input type="text" size="5" maxlength="5" name="identifiant3"/> </span> <span class="identifiant" style="display:none;"> <input type="text" name="identifiant" size="18" value="<?php echo JText::_( 'Username' ); ?>" onblur="if(this.value=='') this.value='<?php echo JText::_( 'Username' ); ?>';" onfocus="if(this.value=='<?php echo JText::_( 'Username' ); ?>') this.value='';" /> </span>
Je voudrais lorsque l'on valide mon formulaire :
Code : Sélectionner tout - Visualiser dans une fenêtre à part <form action="index.php" method="post" name="login">
Que sa remplisse automatiquement mon champ "identifiant" avec comme valeur : identifiant1+identifiant2+identifiant3
Donc si on a saisi identifiant1= 42
identifiant2 = 24
identifiant3 = 55555
Alors identifiant=42245555
Comment faire svp ?
Partager