Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
- <script>
- $(document).ready(function(){
- $("boton-enviarformulario").click(function(){
- $.post("archivo1.php",$("#formulario").serialize(),function(){
- alert("La informacion fue recibida por el archivo 1 ");
- });
- $.post("archivo2.php",$("#formulario").serialize(),function(){
- alert("La informacion fue recibida por el archivo 2 ");
- });
- return false;
- });
- });
- </script>
- </head>
- <body>
- <form id="formulario">
- <h2>Contacto</h2>
- Digite nombre <input type="text" name="nombre"/><br/>
- Digite telefono <input type="text" name="telefono"/><br/>
- <input type="button" id="boton-enviarformulario" value="enviar"/>
- </form>
- </body>
Add Comment
Please, Sign In to add comment