Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/11/2008, 10:22
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 15 años, 10 meses
Puntos: 2
Pregunta Consulta...validacion por cada input

Hola amigos quisiera me ayudaran a tenerlo claro esto:
1. tengo este esqueleto
Código php:
Ver original
  1. <!-- <head>
  2. <script language="javascript" type="text/javascript">
  3. function funcion_uno()
  4. {...
  5. }
  6. function funcion_dos()
  7. {...
  8. }
  9. </script>
  10. </head>
  11. <body>
  12. <form action="" onsubmit="return (funcion_uno() && funcion_dos());">
  13. <...>
  14. <input type="submit" name="input_submit" value="Borrar">
  15. <input type="submit" name="input_submit" value="Actualizar">
  16. </form>
  17. </body>
  18.  -->
2. El punto está en como decirle al sistema que al dar click en submit:
a. BORRAR, me valide SOLO la funcion_uno
b. ACTUALIZAR, me valide SOLO la funcion_dos

Por favor espero tener respuesta con esto k estoy dandole vuelta, y muchas gracias por la atención