Tengo entendido que esto se hace muy facilmente con ajax el cual no manejo y no quiero decir que no me interese, de ser posible me gustaria saber como hacerlo de los dos modos pero me interesa mas hacerlo en PHP.
<table width="970" height="128" border="1" align="center">
<form action="factura.php" method="post">
<tr>
<td width="97">Nombre</td>
<td width="375"><input type="text" name="nombre" id="nombre" /></td>
<td width="107">Cédula</td>
<td width="363"><input type="text" name="cedula" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Codigo</td>
<td><input type="text" name="cedula" /></td>
<td>Cantidad</td>
<td><input type="text" name="cedula" /></td>
</tr>
<tr>
<td>Descripción</td>
<td><input type="text" name="cedula" /></td>
<td>Precio</td>
<td><input type="text" name="cedula" /></td>
</tr>
</form>
</table>
<p><br />
</p>
<table width="694" height="137" border="1" align="center">
<tr>
<th width="100" align="center">Código</th>
<th width="91" align="center">Cantidad</th>
<th width="363" align="center">Descripción</th>
<th width="112" align="center">Total</th>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<th>TOTAL</th>
<th> </th>
</tr>
</table>