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
| <?php
$i;
$saut = "<br/>";
$produit = array("DAKAR_PARIS"=>850000, "DAKAR_NEW_YORK"=>650000, "DAKAR_MISRATA"=>250000, "DAKAR_KOWEIT"=>950000);
$table = "<table border='2' width=50% >
<caption>liste des produits disponibles</caption>
<tr>
<th width=50%>DESTINATIONS</th>
<th width=30%>PRIX</th>
<th width=20%>CHOIX</th>
</tr>";
foreach($produit as $cle=>$a) {
$table .= "<tr>
<td>$cle</td>
<td>$a</td>
<td><input type='checkbox' name='radio' value='$cle'/></td>
</tr>";
}
$table .= "</table>";
$valider = "<input type='submit' value='valider'/>";
$form = "<form name='commande' action='recup1.php' method='POST'>";
echo $form.$table.$valider."</form>";
?> |