PHP - problema

 
Vista:

problema

Publicado por Erik (20 intervenciones) el 17/07/2009 15:15:22
tengo un problema, no se como hacer para guardar multiples repuestos en este formulario o sea quiero que cada vez que le doy ingresar ingrese esa fila de datos del repuesto y me genere una nueva linea de campos de texto vacios para ingresar uno nuevo

por favor necesito este codigo urgente! porfa

<form method="post" enctype="multipart/form-data" id="myForm">
<h1 align="center"><font color="#003366">Registro de Repuestos </font></h1>
<h1 align="center"> </h1>
<table width="256" border="1">
<tr>
<td width="67"><span class="style3">FECHA DE CAMBIO</span></td>
<td width="173"><label>
<input type="date" name="fecha_cambio" size="15" title="Ingrese la fecha de cambio de repuesto formato aaaa-mm-dd" class="required date" value="<?php echo $_POST['fecha_cambio'];?>"/>
</label></td>
</tr>
</table>
<p> </p>
<p><span class="style2">POR FAVOR INGRESE LOS DATOS DEL REPUESTO</span>
</p>
</p>
<table width="72%" border="1" align="center" >
<tr>
<td width="15%"><strong><font color="#FF0000">CODIGO </font></strong></td>
<td width="16%"><strong><font color="#FF0000">NOMBRE</font></strong></td>
<td width="11%"><strong><font color="#FF0000">NUMERO DE PARTE </font></strong></td>
<td width="11%" rowspan="2"><button type="button" class="boton" id="boton_1" onClick="nuevoDato();">Ingresar</button></td>
</tr>
<tr>
<td height="23"><font color="#003366">
<input name="cod" type="text" size="15" value="<?php echo $_POST['cod'];?>"/>
</font></td>
<td><font color="#003366">
<input name="nom_rep" type="text" size="15" value="<?php echo $_POST['nom_rep'];?>"/>
</font></td>
<td><font color="#003366"><input name="num_parte" type="text" size="15" value="<?php echo $_POST['num_parte'];?>"/>
</font></td>
</tr>
</table>
<p align="center">
</label>
<script type="text/javascript">

window.addEvent('domready', function(){
var myFormValidation = new Validate('myForm',{
errorClass: 'green'
});
});
</script>
<span class="style3">
<input type="submit" name="Submit" value="GUARDAR" />
</span></p>
</form>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder