1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
for($i=1; $i<=$n; $i++){
echo"<tr><td> <select name=nom_charges".$i.">
<option value=0 selected></option>";
foreach($tableau_chrs as $chrs){
if($chrs['TYCR_Flag'] == 0)
echo "<option value=".$chrs['TYCR_idTYCR_Type_Charges_Ressources'].">".$chrs['TYCR_Libelle']."</option>";}
echo"</select></td>
<td><input name=montant_charges".$i." type=text size=10 /></td>
<td><select name=select><option value=men selected>mensuel</option><option value=an>annuel</option>
</select></td></tr>";
}
$tableau_nom = array ();
for ($i=1, $j=1 ;$i<=$n, $j<=$n; $i++, $j++) {
$tableau_nom[$j] = $_GET['nom_charges'][$i];
}
var_dump ($tableau_nom); |
Partager