Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: "index.php/Welcome/add_data",
- type: "post",
- data: {name : sendName ,
- email : sendEmail,
- num : sendNum,
- largo : sendlargo
- },
- success : function(data){
- //data=$dano;
- //alert(data); /* alerts the response from php.*/
- //location.href ="index.php/Welcome/redirecciona";
- //window.location.replace("index.php/Welcome/redirecciona");
- // funciona como si dieras clic en un enlace
- //+ encodeURIComponent(x)+ encodeURIComponent(y)+encodeURIComponent(z)
- window.location.href = "index.php/Welcome/redirecciona"+'/'+encodeURIComponent(x)+'/'+encodeURIComponent(y)+'/'+en
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement