Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/08/2004, 12:59
Troyano
 
Fecha de Ingreso: marzo-2002
Mensajes: 449
Antigüedad: 22 años, 1 mes
Puntos: 0
Tambien podrias hacer un script como el siguiente:

<script language="JavaScript">
function enviar(xLibro)
{
window.form1.txtLibro.value=xLibro;
window.form1.action="reservar.php";
window.form1.submit();
}
function enviar2(xLibro)
{
window.form1.txtLibro.value=xLibro;
window.form1.action="prestar.php";
window.form1.submit();
}
</script>

y en en el html algo asi:

<form name="form1" id="form1">
<input name="txtLibro" type="hidden" id="txtLibro">
<input name="cmdReservar" type="button" id="cmdReservar" value="Reservar" onClick="enviar(9);">
<input name="cmdPrestar" type="submit" id="cmdPrestar" value="Prestar" onClick="enviar2(2);">

</form>

Última edición por Troyano; 04/08/2004 a las 13:05