Guest User

Untitled

a guest
Dec 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <head>
  2. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  3. <script>
  4. $(document).ready(function(){
  5. $("boton-enviarformulario").click(function(){
  6. $.post("archivo1.php",$("#formulario").serialize(),function(){
  7. alert("La informacion fue recibida por el archivo 1 ");
  8. });
  9.  
  10. $.post("archivo2.php",$("#formulario").serialize(),function(){
  11. alert("La informacion fue recibida por el archivo 2 ");
  12. });
  13.  
  14. return false;
  15. });
  16. });
  17. </script>
  18. </head>
  19. <body>
  20. <form id="formulario">
  21. <h2>Contacto</h2>
  22. Digite nombre <input type="text" name="nombre"/><br/>
  23. Digite telefono <input type="text" name="telefono"/><br/>
  24. <input type="button" id="boton-enviarformulario" value="enviar"/>
  25. </form>
  26. </body>
Add Comment
Please, Sign In to add comment