Bonjour
je souhaiterai afficher dans des champs textes, des informations selon ce que j'ai choisi dans ma liste.
Je n'ai qu'une seule table, donc je choisi un livre pas exemple, et selon le livre choisi, j'aimerais que les infos allant avec apparaissent dans les champs textes correspondants.
Voilà un bout de code
<form name="Modif_formu" method="POST" action="mapage.php">
<table width="400" border="0" align="center">
<tr>
<td><div align="center"><strong>Nom : </strong></div></td>
<td align="right">
<select name="titre_mod" >
<?php
$resultat=mysql_query("select titre,studio from table1 order by titre") or die ("Requète non executée.");
while ($ligne=mysql_fetch_array($resultat))
{
echo '<option>'.stripslashes($ligne["titre"]).'</option>';
}
?>
</select></td>
<tr>
<td><div align="center"><strong>Durée : </strong></div></td>
<td align="right"><input name="duree_mod" type="text" id="duree"></td>
</tr>
<tr>
<td><div align="center"><strong>Intérêt : </strong></div></td>
<td align="right"><input name="interet_mod" type="text" id="interet"></td>
</tr>
</table>
<input type="submit" value="Modifier" name="bouton_mod">
</form>
</div>