[eluser]tnathos[/eluser]
Hi all, i find the solution, send the data between ajax and no post directly, this form is to easy beacause if the user press f5 the data store in the browser not resend when the user press f5..
For all undestarnd, the problem it whas, i have a view what contain a tab controller whit JQUERY, in this controller call other views, but the main page is same, so when i send data whit a view into tab, the broser store the array _post and if the user press f5 re-send all data to DB. this easy solution if the data send using ajax and no metod post.
check the code ajax, what send data to model for insert to database, the important here is not create tag <form> this is not necessary.
In the submit=<input type="submit" name="button" id="btncc">
[removed]
function newcc()
{
$.ajax({
type: "POST",
url: "/xxx/xxxx/xxxx/",
cache: false,
data: "valor="+$("#valor").val()+"&tipo;="+$("#tipo").val()+"&email;="+$("#email").val()+"&datepicker1;="+$("#datepicker1").val()+"&city;="+$("#city").val()+"&country;="+$("#country").val()+"&platform;="+$("#platform").val()+"&numope;="+$("#numope").val()+"&nameBank;="+$("#nameBank").val()+"&account;="+$("#account").val(),
success: function(msg){
$('#comment').html(msg);
$("#valor").val('')
}
});
}