Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/11/2008, 10:08
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 16 años, 8 meses
Puntos: 2
Pregunta Consulta...dos funciones - onsubmit

Buenos dias amigos,
por favor tengo este script:

Código php:
Ver original
  1. <!-- <script language="javascript" type="text/javascript">
  2. function funcion_uno()
  3. {...
  4. }
  5. function funcion_dos()
  6. {...
  7. }
  8. </script>
  9. </head>
  10. <body>
  11. <form action="" onsubmit="return (funcion_uno() && funcion_dos());">
  12. <...>
  13. <input type="submit" name="input_submit" value="BORRAR">    ////BORRAR/////
  14. <input type="submit" name="input_submit" value="ACTUALIZAR">   ////ACTUALIZAR///////
  15. </form>
  16. </body>-->

Como decirle al sistema??? que al dar click en submit:
a. BORRAR, me valide SOLO la funcion_uno /////FUNCION UNO///////
b. ACTUALIZAR, me valide SOLO la funcion_dos /////FUNCION DOS////////

Agradesco de antemano la respuesta k me puedan brindar.