j'ai un formulaire dans lequel je peux récupérer toutes mes données

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
<input name="idacpt[<?php echo $row_acpt['id'];?>]" type="hidden" id="idacpt[<?php echo $row_acpt['id'];?>]" value="<?php echo $row_acpt['id'];?>" />
<input name="mtg[<?php echo $row_tache['id'];?>]" type="text" id="mtg[<?php echo $row_tache['id'];?>]" value="<?php echo $row_acpt['metrage'];?>" size="5" />
<input name="pu[<?php echo $row_tache['id'];?>]" type="text" id="pu[<?php echo $row_tache['id'];?>]" value="<?php echo $row_acpt['pu'];?>" size="5" />
<input name="qt[<?php echo $row_tache['id'];?>]" type="text" id="qt[<?php echo $row_tache['id'];?>]" value="<?php echo $row_acpt['qt'];?>" size="5" />
et cela marche a merveille, et même au moment de la récupérer sur la page de la modification

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
// -------------
$array_mtg = $_POST['mtg'];
$array_pu = $_POST['pu'];
$array_qt = $_POST['qt'];
$array_idacpt=$_POST['idacpt'];
// -------------
 
foreach ($array_mtg as $id => $val){
$sql="update tache_acompte set id='$array_idacpt[$id]',id_terrain='$id_terrain',id_operateur='$id_tier',id_tache='$id',pu='$array_pu[$id]',metrage='$array_mtg[$id]',qt='$array_qt[$id]',total_accord='$total_accord[$id]' where id='$array_idacpt[$id]'";
}
mon problème est le suivant : $array_idacpt=$_POST['idacpt'];

idacpt est le nom du champ qui contient l'ID que j'ai récupère à partir d'une autre table via une requête sur la page "formulaire".

Merci d'avance