Cluster este es mi codigo (medio cavernicola no mas)
Código PHP:
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Form Coti</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<th colspan="8">COTI</th>
</tr>
<tr>
<td colspan="3"><strong>SEÑORES</strong></td>
<td colspan="5"><input name="seniores" type="text" id="seniores" size="60" /></td>
</tr>
<tr>
<td colspan="3"><strong>ATENCIÓN</strong></td>
<td colspan="5"><input name="atencion" type="text" id="atencion" size="60" /></td>
</tr>
<tr>
<td colspan="8"><strong>RESUMEN</strong></td>
</tr>
<tr>
<td colspan="8" align="center"><textarea name="resumen" cols="120" id="resumen"></textarea></td>
</tr>
<tr>
<td colspan="8"> </td>
</tr>
<tr>
<th>Item</th>
<th>Articulo</th>
<th>Nº Parte</th>
<th>Cantidad</th>
<th>Precio</th>
<th>Total</th>
<th>Actualizar</th>
<th>Eliminar</th>
</tr>
<!--ini bucle items -->
<?php
$count=1;
foreach($_SESSION['articulo'] as $k=>$valor){
echo "<tr>";
echo '<td>'.$count++.'</td>';
echo '<td><input name="articulo" type="text" id="articulo" size="50" value="'.$_SESSION['articulo'][$k].'" /></td>';
echo '<td><input name="np" type="text" id="np" value="'.$_SESSION['np'][$k].'" /></td>';
echo '<td><input name="cantidad" type="text" id="cantidad" size="4" value="'.$_SESSION['cantidad'][$k].'" /></td>';
echo '<td><input name="precio" type="text" id="precio" size="10" value="'.$_SESSION['precio'][$k].'" /></td>';
$pxq=$_SESSION['cantidad'][$k]*$_SESSION['precio'][$k];
echo '<td>'.$pxq."</td>";
echo '<td><a href="COTI_ACTU.php?item='.$k.'&cantidad=">A</a></td>';
echo '<td><a href="COTI_DEL.php?item='.$k.'">E</a></td>';
echo "</tr>\n";
$total+=$pxq;
}
?>
<!--fin bucle items -->
<tr>
<td colspan="4"> </td>
<td>Total</td>
<td colspan="3"><strong><?php echo $total; ?></strong></td>
</tr>
<tr>
<td colspan="8">Nota</td>
</tr>
<tr>
<td colspan="8" align="center"><textarea name="nota" cols="120" id="nota"></textarea></td>
</tr>
<tr>
<td colspan="7"> </td>
<td><input type="submit" name="Submit" value="Enviar" /></td>
</tr>
</table>
</form><br />
<form id="form2" name="form2" method="post" action="COTI_ADD.php">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td>Articulo</td>
<td>Nº Parte </td>
<td>Cantidad</td>
<td>Precio</td>
</tr>
<tr>
<td><input name="articulo" type="text" id="articulo" size="50" /></td>
<td><input name="np" type="text" id="np" /></td>
<td><input name="cantidad" type="text" id="cantidad" size="4" /></td>
<td><input name="precio" type="text" id="precio" size="10" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Agregar Articulo" /></td>
</tr>
</table>
</form>
</body>
</html>
agradesco tu ayuda Cluster
como ves el codigo , se van agragando uno a uno los articulos en el form de abajo para ir mostrandolos en el form de arriba y poder enviarlo finalmente para q en ese momento sean ingresado a una bd...
nose si me explico bien :S
pongo una imagen del codigo:
Gracias