Tema: repostear
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/01/2007, 10:53
Avatar de Sandino
Sandino
 
Fecha de Ingreso: octubre-2006
Mensajes: 277
Antigüedad: 17 años, 7 meses
Puntos: 1
repostear

hola amigos espero me ayuden necesito q un formulario se actualize para desplegar datos algunos datos desde una consulta sql. el codigo es el sig:

<script language="javascript">
function Selecionar(){
var frm = document.frm[0];
frm.fechainicio.value = frm.fechainicio.value;
frm.fechatermino.value = frm.fechatermino.value;
frm.action="Gestiones.asp";
frm.submit();
}
</script>
<form name="frm" method="get">
<table width="523" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="289"><div align="center" class="Estilo1">Fecha Inicio:</div></td>
<td width="228"><div align="center">
<input name="fechainicio" type="text" id="fechainicio">
</div></td>
</tr>
<tr>
<td><div align="center" class="Estilo1">Fecha T&eacute;rmino: </div></td>
<td><div align="center"><input name="fechatermino" type="text" id="fechatermino"></div></td>
</tr>
<tr>
<td><div align="center"><input type="button" name="btn1" value="BUSCAR" onClick="Selecionar()"></div></td>
<td><div align="center">
<input type="reset" name="borrar" value="BORRAR">
</div></td>
</tr>
</table>

el error es fechainicio no es un objeto no e podido encontrar el error espero ayuden gracias.