我的javascript函数是这样的
function translate( language ) {
var dataString = $("#redirect_url").val();
$.ajax({
type: "POST",
url: "<?php echo $this->config->base_url()index.php/translate/index/"+language+"/",
data: 'url='+dataString,
success: function(data){
alert( data );
}
});
return false;
}
我用过$this->input->post('url');
但不起作用。我在萤火虫中获得帖子价值。谁能帮忙!!!