Metterti apposto il codice è impossibile ti posso scrivere un esempio....
Qualcuno mi lincerà...non è bellissima coma soluzione...per niente!
codice:
<form name="magazzino" method="get" action="agg/agg_magazzino.php">
<?php
$count = 0;
$query_componenti = "SELECT * FROM articoli WHERE art_principale='$_GET[articolo]' ";
$result_componenti = mysql_query($query_componenti) or die("Non ho potuto effettuare la query_componenti. <b>Cod.-".mysql_errno().":". mysql_error()."</b>" );
$rows = array();
while($row = mysql_fetch_array($result_componenti))
$rows[] = $row;
foreach($rows as $row){
echo "
<td><input type='checkbox' name='seleziona[{$count}]' value='{$row['art_id']}'/></td>
<td><input type='number' name='qtacomponenti[{$count}]' size='4' value='{$operatore}'> </td>
<td ><a target='_blank' href='articoli.php?show=m&id={$row['art_id']}'> {$row['art_codice']} </a> </td>";
$count++;
}
?>
<input type="submit" name="submit" value="Inserisci">
Devi adattarlo....in base alle tue esigenze... questo è solo un esempio...inizia a metterlo apposto.
Resto a disposizione per qualsiasi cosa!
Buon lavoro