Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/04/2008, 05:46
centrion_75
 
Fecha de Ingreso: marzo-2008
Mensajes: 119
Antigüedad: 16 años, 1 mes
Puntos: 0
Re: Problemas con los botones submit

Sigue sin hacer nada.

En el script he puesto:

Código PHP:
<SCRIPT LANGUAGE="JavaScript">
    function 
envia(pag,id){ 
        
document.form.action pag;
        
document.getElementById(id).submit(); 
    } 
</script> 
Y en el formulario:

Código PHP:
<form name="fcalen" id="fcalen" >
<table width="100%" >
  <tr>
    <td class="textForm"><br>
      DESDE:</td>
    <td><br>
      <?
escribe_formulario_fecha_vacio
("fecha1","fcalen");
?></td>
    <td class="textForm"><br>
      HASTA:</td>
    <td><br>
      <?
escribe_formulario_fecha_vacio
("fecha2","fcalen");
?></td>
  </tr>
  <tr>
    <td  colspan="3"><label>
      <div align="center"><br>
        <input class="botonformulario2" onclick="envia('../c.php','fcalen')" type="button" name="Aceptar" id="Aceptar" value="Aceptar">
        </div>
    </label></td>
    <td ><label>
      <div align="center"><br>
        <input class="botonformulario2" onclick="envia('../acttuto.php','fcalen')" type="button" name="Cancelar" id="Cancelar" value="Cancelar">
        </div>
    </label></td>
  </tr>
</table>

</form>
A lo mejor lo estoy haciendo mal.