contenu d'un span comme un input de type password
Bonjour tout le monde,
Je réalise actuellement un site marchand en PHP et j'ai une page "mon compte" ou les membres du site peuvent modifier leurs informations personnelles.
Pour cela, voici à quoi cette page ressemble :
http://free0.hiboox.com/images/4510/...7fe5934aa9.jpg
Pour afficher mes données, je l'es récupères grâce à une page codé en PHP, voici son code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| <?php
// Appel de la méthode 'retournerUnclient' appartenant à la classe 'DAO_Client'
$Leclient=R_zone_membre::Recuperer_client($_COOKIE["moto_28"]);
for ($i=0; $i<sizeof($Leclient); $i++){
?><script language="JavaScript">
id = "<?php echo $Leclient[0]; ?>";
titre = "<?php echo $Leclient[1]; ?>";
nom = "<?php echo $Leclient[2]; ?>";
prenom = "<?php echo $Leclient[3]; ?>";
dt_naissance = "<?php echo $Leclient[4]; ?>";
num_rue= "<?php echo $Leclient[5]; ?>";
code_postal= "<?php echo $Leclient[6]; ?>";
ville= "<?php echo $Leclient[7]; ?>";
tel_domicile= "<?php echo $Leclient[8]; ?>";
tel_portable= "<?php echo $Leclient[9]; ?>";
mail= "<?php echo $Leclient[10]; ?>";
mdp= "<?php echo $Leclient[11]; ?>";
document.location.href='Index.php?action=preference&titre='+titre+'&nom='+nom+'&id='+id+'&prenom='+prenom+'&dt_naissance='+dt_naissance+'&num_rue='+num_rue+'&code_postal='+code_postal+'&ville='+ville+'&tel_domicile='+tel_domicile+'&tel_portable='+tel_portable+'&mail='+mail+'&mdp='+mdp;
</script>
<?php
}
?> |
Voici la page html correspondant à l'action "preference" :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
| <script type="text/javascript" src="contenu/js/mon_compte.js"></script>
<form name="" method="POST" action="contenu/Controle/C_mon_compte.php">
<input type="hidden" id="id_cache" value="<?php echo $_GET['id']; ?>"></input>
<input type="hidden" id="titre_cache" value="<?php echo $_GET['titre']; ?>"></input>
<input type="hidden" id="nom_cache" value="<?php echo $_GET['nom']; ?>"></input>
<input type="hidden" id="prenom_cache" value="<?php echo $_GET['prenom']; ?>"></input>
<input type="hidden" id="dt_naissance_cache" value="<?php echo $_GET['dt_naissance']; ?>"></input>
<input type="hidden" id="num_rue_cache" value="<?php echo $_GET['num_rue']; ?>"></input>
<input type="hidden" id="cp_cache" value="<?php echo $_GET['code_postal']." ".$_GET['ville']; ?>"></input>
<input type="hidden" id="tel_domicile_cache" value="<?php echo $_GET['tel_domicile']; ?>"></input>
<input type="hidden" id="tel_portable_cache" value="<?php echo $_GET['tel_portable']; ?>"></input>
<input type="hidden" id="mail_cache" value="<?php echo $_GET['mail']; ?>"></input>
<input type="hidden" id="mdp_cache" value="<?php echo $_GET['mdp']; ?>"></input>
<table>
<tr>
<td>
Titre :
</td>
<td>
<div id="titre"></div>
</td>
<td>
<a href="#" id="maj_titre">Modifier</a>
</td>
</tr>
<tr>
<td>
Nom :
</td>
<td>
<div id="div_nom"></div>
</td>
<td>
<a href="#" id="maj_nom">Modifier</a>
</td>
</tr>
<tr>
<td>
Prénom :
</td>
<td>
<div id="prenom"></div>
</td>
<!-- <td>
<a href="#" id="maj_prenom">Modifier</a>
</td>-->
</tr>
<tr>
<td>
Date de naissance :
</td>
<td>
<div id="date_naissance"></div>
</td>
<!-- <td>
<a href="#" id="maj_dt_naissance">Modifier</a>
</td>-->
</tr>
<tr>
<td>
Numéro et Rue :
</td>
<td>
<div id="num_rue"></div>
</td>
<td>
<a href="#" id="maj_num_rue">Modifier</a>
</td>
</tr>
<tr>
<td>
<div id="titre_cp">CP et Ville :</div>
</td>
<td>
<div id="reg"></div>
</td>
<td>
<a href="#" id="maj_cp">Modifier</a>
</td>
</tr>
<tr id="tr_dept">
<td>
Département :
</td>
<td>
<div id="dept"></div>
</td>
<td>
<a href="#" id="maj_dept">Annuler</a>
</td>
</tr>
<tr id="tr_ville">
<td>
Ville :
</td>
<td>
<div id="ville"></div>
</td>
<td>
<a href="#" id="maj_ville">Mettre à jour</a>
</td>
</tr>
<tr>
<td>
Téléphone domicile :
</td>
<td>
<div id="domicile"></div>
</td>
<td>
<a href="#" id="maj_tel_domicile">Modifier</a>
</td>
</tr>
<tr>
<td>
Téléphone portable :
</td>
<td>
<div id="portable"></div>
</td>
<td>
<a href="#" id="maj_tel_portable">Modifier</a>
</td>
</tr>
<tr>
<td>
Mail :
</td>
<td>
<div id="mail"></div>
</td>
<td>
<a href="#" id="maj_mail">Modifier</a>
</td>
</tr>
<tr>
<td>
Mot de passe :
</td>
<td>
<div id="mdp" ></div>
</td>
<td>
<a href="#" id="maj_mdp">Modifier</a>
</td>
</tr>
<tr id="tr_confirmation_mdp">
<td>
Retaper mot de passe :
</td>
<td>
<input type="password" name="confirmation_mdp" id="confirmation_mdp"></input>
</td>
<td>
<a href="#" id="maj_confirmation_mdp">Mettre à jour</a>
</td>
</tr>
</table>
<center><span id="mes" style="color:red;"></span></center>
</form> |
Je souhaiterais que le mot de passe soit écrit de la même façon que quand on écrit dans un input de type password(rond noir). Cela est-il possible ? Si oui de quel manière ?
Merci d'avance!