Advertisement
yesamarcos

Se tá enviando $_POST, não precisa dos parâmetros na url !!

Jan 3rd, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <script>
  2. jQuery(document).ready(function(){
  3.     jQuery('#setting-add-fanfic').submit(function(){
  4.         var dados = jQuery(this).serialize();
  5.         jQuery.ajax({
  6.             type: "POST",
  7.             url: "<?php echo base_url("functions_extra/post.php"); ?>",
  8.             data: dados,
  9.             success: function( data ){
  10.                 $('#alert').html('<?php echo $wo['lang']['success'];?>');
  11.             }
  12.         });
  13.         return false;
  14.     });
  15. });
  16. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement