1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <select name="listeInfo" style="xborder:thin"><option>---------------------</option><?php
$reponse=mysql_query("select nom_hotel from hotels");
while($donnees=mysql_fetch_array($reponse)){
echo"<option>".$donnees['nom_hotel']."</option>";
}
?></select>
<input type="submit" name="btOk" value="GO"/></p>
</form>
<?php
if (isset($_POST['btOk'])){
//tu fais le test a savoir si il y a un élément de sélectionné dans la liste...
$valeur=$_POST['listeInfo'];
$req=mysql_query("SELECT * FROM hotels WHERE nom_hotel='".$valeur."'",$connexion);
echo '<form method="POST" action="valider_modife_hotel.php" name="F1">';
while($JeuEnr=mysql_fetch_assoc($req)){
echo'<table align="right" border="0">';
echo '<tr><td><font face="Verdana" color="blue"><span style="font-size:9pt;">Categorie Hotel</span></font></td><td><span style="font-size:9pt;"><font face="Verdana" color="white"><input type="text" name="categorie" value="'.$JeuEnr['categorie_hotel'].'"/></td></tr>';
........
......
echo'<tr><td><INPUT TYPE="submit" name="valider" VALUE="Valider" style="font-family:Verdana,serif; font-style:normal; font-weight:normal; font-size:12px; color:black; background-color:rgb(255,153,0); margin:1px; padding:1px; border-width:1px; border-color:black; border-style:groove;" name="submit">  </td></tr>';
ech'</form>'; |
Partager