Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--HTML-->
- <form id="f1" class="validate" action="" method="post" onsubmit="return false">
- campos aqui
- <button id="btnSendForm">enviar</button>
- </form>
- <!--JScript-->
- <script>
- $(function(){
- $('#btnSendForm').live('click',function(){
- var dados = $('#f1').serialize();
- $.post('post.php',{dados:dados},function(data){
- alert(data)
- })
- })
- })
- </script>
- <!--Criar em um arquivo PHP-->
- <? print_r($_POST['dados']); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement