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
|
Nom : <center>
<select name="nom">
<option value="choix1"></option>
<?php
mysql_connect("localhost","root","");
mysql_select_db("base");
$id = 1 ;
do
{
$membre = mysql_fetch_assoc (mysql_query ("SELECT * FROM utilisateurs WHERE id = '$id'") ) ;
?>
<option value="choix2"><?php echo $membre['nom'] ?></option>
<?php
$id = $id + 1 ;
}
while ($membre['nom'] != "") ;
?>
</select></center><br>
<?php
$nom = $_POST['nom'] ;
$donnees = mysql_fetch_assoc (mysql_query ("SELECT * FROM utilisateurs WHERE nom = '$nom'") ) ;
$prenom = $donnees['prénom'] ;
?>
Prénom : <center><input type="text" name="a_prénom" value = <?php $prenom ?> ></center><br> |