Advertisement
Guest User

Untitled

a guest
Jan 24th, 2013
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.45 KB | None | 0 0
  1. <!--HTML-->
  2. <form id="f1" class="validate" action="" method="post" onsubmit="return false">
  3. campos aqui
  4. <button id="btnSendForm">enviar</button>
  5. </form>
  6.  
  7. <!--JScript-->
  8. <script>
  9. $(function(){
  10.    $('#btnSendForm').live('click',function(){
  11.        var dados = $('#f1').serialize();   
  12.        $.post('post.php',{dados:dados},function(data){
  13.     alert(data)
  14.       })
  15.   })
  16. })
  17. </script>
  18.  
  19. <!--Criar em um arquivo PHP-->
  20. <?  print_r($_POST['dados']); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement