Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/01/2011, 04:32
Avatar de floog
floog
 
Fecha de Ingreso: enero-2006
Mensajes: 191
Antigüedad: 18 años, 4 meses
Puntos: 2
Multiples entradas en un solo formulario

buenas,
tengo el siguiente formulario
Código HTML:
<form>
<h2 class="h2header">Mercancias</h2>
                                <table>
                                    <tr>
                                    	<td>Carga:</td>
                                        <td><input type="text" name="merc1" size="10"></td>
                                        <td width="2%"></td>
                                        <td>Tons:</td>
                                        <td><input type="text" name="tons1" size="10"></td>
                                        <td width="2%"></td>
                                        <td>Pcs:</td>
                                        <td><input type="text" name="pcs1" size="10"></td>
                                    </tr>
                                    <tr>
                                    	<td>Carga:</td>
                                        <td><input type="text" name="merc2" size="10"></td>
                                        <td width="2%"></td>
                                        <td>Tons:</td>
                                        <td><input type="text" name="tons2" size="10"></td>
                                        <td width="2%"></td>
                                        <td>Pcs:</td>
                                        <td><input type="text" name="pcs2" size="10"></td>
                                    </tr>
                                    <tr>
                                    	<td>Carga:</td>
                                        <td><input type="text" name="merc3" size="10"></td>
                                        <td width="2%"></td>
                                        <td>Tons:</td>
                                        <td><input type="text" name="tons3" size="10"></td>
                                        <td width="2%"></td>
                                        <td>Pcs:</td>
                                        <td><input type="text" name="pcs3" size="10"></td>
                                    </tr>
                                    <tr>
                                    	<td>Carga:</td>
                                        <td><input type="text" name="merc4" size="10"></td>
                                        <td width="2%"></td>
                                        <td>Tons:</td>
                                        <td><input type="text" name="tons4" size="10"></td>
                                        <td width="2%"></td>
                                        <td>Pcs:</td>
                                        <td><input type="text" name="pcs4" size="10"></td>
                                    </tr>
                                </table>
</form> 
la idea es que el usuario pueda introducir diferentes datos de una sola vez, me explico: paquete 1, 1100 tons, 1100 units
paquete 2, 2200 tons, 2200 units
paquete 3, 3300 tons, 3300 units
paquete 4, 4400 tons, 4400 units

y que al hacer submit en el formulario registre cada evento anterior como un nuevo registro en la tabla mercancias, es decir, un registro para paquete1 otro para paquete2 y sucesicamente.