Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/06/2009, 11:45
Avatar de hschimpf
hschimpf
 
Fecha de Ingreso: junio-2009
Ubicación: in the World Wide Web
Mensajes: 140
Antigüedad: 15 años, 9 meses
Puntos: 17
Respuesta: Campo agregado por Javascript (document.createElement) no me llega por $_P

si, esta dentro del FORM, la tabla donde agrego estos campos esta dentro del form..
En el $_POST solo llegan los valores como nombre, etc.. pro estos campos agregados dinamicamente ninguno retorna un valor al $_POST..
este es el FORM completo:
Código HTML:
<FORM action="./inc/inc.update.php?new=true" method="POST" name="formNuevaPersona">
<INPUT type="text" name="nombre" id="foco" onkeydown="javascript:return noEnter(event)">
<INPUT type="text" name="apellido" onkeydown="javascript:return noEnter(event)">
<INPUT type="text" name="telefono" class="TINYINPUT" maxlength="11" onkeyup="mascara(this,'-',tel,true)" onkeydown="javascript:return nros(event)">
<INPUT type="text" name="celular" class="TINYINPUT" maxlength="12" onkeyup="mascara(this,'-',cel,true)" onkeydown="javascript:return nros(event)">
<INPUT type="text" name="direccion" onkeydown="javascript:return noEnter(event)">
-------------hay mas campos aqui--------------
<DIV align="left" id="camposProfesion"></DIV>
<INPUT id="botonAgregar" type="button" class="BOTONAZUL" value="Agregar Profesion" style="width: 120px;" onclick="javascript:crearProfesiones('Ingeniero:1;Analista:2;Licenciado:3')">
<INPUT type="button" class="BOTONGRIS" onclick="javascript:validarCampos('nombre;apellido;codTipoDocumento;nroDocumento;direccion;codCiudad;sexo;codNacionalidad',this.form);" value="Agregar">
<INPUT type="button" class="BOTONROJO" value="Cancelar" onclick="javascript:location='./';">
</FORM> 
sobre el DIV se agregan los combos desde javascript

Última edición por hschimpf; 16/06/2009 a las 12:17