Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/08/2008, 14:48
juanguitar
 
Fecha de Ingreso: julio-2008
Ubicación: BOGOTA
Mensajes: 81
Antigüedad: 15 años, 10 meses
Puntos: 1
Ayuda con Submit que no sea boton

Hola,, dentro de una consulta debo elegir la fecha mediante el calendario de java script, el lio es que escojo fecha inicial y fecha final, le agregue un boton de confirmar para que reciba estos datos y me genere un csv. hasta ahi todo iba perfecto pero me pidieron eliminar el boton submit de las fechas,, no se como hacer para que yo elija las fechas y automaticamente me haga el submit para que genere el csv esta es la parte del codigo:

<form action="<?php echo $PHP_SELF ?>" method="post" name="actuali">
<p>&nbsp; </p>
<tr>
<td class="nombres" >FECHA INICIO :</td>
<td>
<input type="text" name="inicial" size="11" maxlength="10" class="texto" value="<?php if ($inicial) echo $inicial; else echo 'aaaa-mm-dd'; ?>" />
<a href="javascript:show_calendar('actuali.inicial'); " onMouseOver="window.status='Elige fecha'; overlib('Click para elegir fecha.', FGCOLOR, '#B7D3FA'); return true;" onMouseOut="window.status=''; nd(); return true;">
<img src="images/cal.jpg" width=20 height=20 border=0 /></a>
</td>
</tr>
<tr>
<td class="nombres" >FECHA FIN :</td>
<td>
<input type="text" name="final" size="11" maxlength="10" class="texto" value="<?php if ($final) echo $final; else echo 'aaaa-mm-dd'; ?>" />
<a href="javascript:show_calendar('actuali.final');" onMouseOver="window.status='Elige fecha'; overlib('Click para elegir fecha.', FGCOLOR, '#B7D3FA'); return true;" onMouseOut="window.status=''; nd(); return true;">
<img src="images/cal.jpg" width=20 height=20 border=0 /></a>


<input class=boton type="submit" value="CONFIRMAR FECHA" /> (ESTO DEBO ELIMINARLO, QUE EL SUBMIT SEA AUTOMATICO???)


<input name="Button" type="button" class=boton onclick="MM_goToURL('parent','./reportes/informeventas.csv');return document.MM_returnValue" value="INFORME 1" />

</td>
</tr>
</form>