Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/10/2008, 19:39
mariapau17
 
Fecha de Ingreso: octubre-2008
Mensajes: 1
Antigüedad: 15 años, 6 meses
Puntos: 0
De acuerdo Agreagar campos a un formulario con Javascript

Hola tengo esta pag
Código PHP:
<tr>
    <td>Tipo Curso:
        </td>
    <td>
      <SELECT size=1 name=select4>
      <option value="1">DEFENSA CIVIL
      <option value="2">OTROS
       </select>
    </td>
    <td>Nombre:
        </td>
        <td><input type = "text" name = "nomcurso">
        </td>
</tr>
<tr>
    <td>Fecha Día:
        </td>
        <td><input type = "text" name = "dia1">
        </td>
    <td>Mes:
        </td>
        <td><input type = "text" name = "mes1">
        </td>
    <td>Año:
        </td>
        <td><input type = "text" name = "ano1">
        </td>
         <td><input id="mas" value="Agregar" type="button">
        </td>
</tr>
<tr>
 <td><BIG> <STRONG> Condecoracion:<STRONG></BIG> <BR>
<td>
<select name="first" ">
            <?php while($res  =  mysql_fetch_array($firstQry)){?>
                <option  value="<?php echo $res["Id_Condecora"]?>"><?php echo $res["Tipo"]?></option>
            <?php }unset($firstQry,$res);?>
        </select>

</td>
    <td>N° Resolucion:
        </td>
        <td><input type = "text" name = "nomcurso">
        </td>
</tr>
<tr>
    <td>Fecha Día:
        </td>
        <td><input type = "text" name = "dia2">
        </td>
    <td>Mes:
        </td>
        <td><input type = "text" name = "mes2">
        </td>
    <td>Año:
        </td>
        <td><input type = "text" name = "ano2">
        </td>
         <td><input type = "reset" name = "Boton4" value = "Agregar">
        </td>
      </tr>
</tr>
<tr>
        <td><input type = "reset" name = "Boton1" value = "Cancelar">
        </td>
        <td><input type="button" name="Boton2" value="Finalizar" onclick= "validar()"> 
        </td>
      </tr>



</form>
</table>
La idea es que cuando de click en el boton agregar, aparescan nuevmente los campos de select los de texto , me explico, tengo los campos para curso que son el nombre, la fecha y cuando de click en agregar otra vez me aparescan los campos para agregar otro curso......Gracias por la ayuda