Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="" id="form1" method="post">
- <input type="hidden" id="cat_i" name='cat_i' value="<?php echo $cat_i; ?>">
- <input type="hidden" id="tipo_i" name='tipo_i' value="<?php echo $tipo_i; ?>">
- <input type="hidden" id="uf" name='uf' value="<?php echo $uf; ?>">
- <input type="hidden" id="cidade" name='cidade' value="<?php echo $cidade; ?>">
- </form>
- <script type="text/javascript">
- document.getElementById('form1').submit();
- $(document).ready(function(){
- $("#form1").submit(function(){
- var dados = $("#form1").serialize();
- $.ajax({
- type: "POST",
- url: "pagbusc.php",
- data: dados,
- success: function( data )
- {
- alert( data );
- }
- });
- return false;
- }
- });
- });
- <?script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement