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
| <form id="selNumform" method="post" action="gestion.php">
<p>
<label for="idselNum">Choisissez l'article à modifier</label>
<select id="idselNum" name="selNum">
<?php
// requête pour sélectionner l'article à modifier :
$req1=$pdo->query( "SELECT num, articles FROM produit ORDER BY articles ASC;" );
while($row=$req1->fetch()) {
?>
<option value="<?php echo $row['num']; ?>"><?php echo $row['articles']; ?></option>
<?php
}
?>
</select>
</p>
<p>
<label for="idselNum"> </label>
<input type="submit" name="valide" value="Sélectionner" OnClick="document.forms[0].action='articles.php?'"/> </a>
</p>
<table width="400" border="1" cellspacing="1" cellpadding="8">
<?php
while($affiche =$req->fetch()) {?>
<tr>
<td>Numéro : </td>
<td><?php echo $affiche['num'] ; ?> </td>
</tr>
<tr>
<td>Articles : </td>
<td><?php echo $affiche['articles'] ; ?> </td>
</tr>
<tr>
<td>Prix : </td>
<td><?php echo $affiche['prix'] ; ?> </td>
</tr>
<tr>
<td>Modif Prix : </td>
<td><textarea name="Modif" rows="1" cols="10" ></textarea></td>
</tr>
</table>
<?php
}?>
</table>
<input type="hidden" name="selNum" value="<?php echo $_POST['selNum']; ?>" />
<label>
<input type="submit" name="bouton" value="Envoyer" />
</label>
</form> |