Bonjour,
J'ai un problème pour concaténer des champs.
J'ai ceci :
<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 :
<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
Est-ce plus compréhensible comme cela ?