I have an url in ajax like this:
<html>
<header>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</header>
<body>
<?php 
        echo("<pre>");
        echo "Hello: <span style='color:red'>".$user_data['user'];
        echo("</pre>"); 
        echo "<button  id='play' id_user = '".$user_data['id']."' user = '".$user_data['user']."'>Chơi game</button>";
?>
<script>
$("#play").click(function(){
    var user_id  = $(this).attr('id_user');
    var user = $(this).attr('user');
    window.location=  "<?php echo site_url('wellcome?user_id='.$user_data['id'].'&user='.$user_data['user']); ?>";
    })
</script>
</body>
</html>
When i redirect to welcome Controller with 2 parameters then it shows a 404 error. How should i do pass that parameter to controller welcome? Thanks all!
 
     
     
    