Welcome Guest, Not a member yet? Register   Sign In
JQuery post parameters do not get to my controller
#8

So I've cleaned up the code to the bare minimum. Now my controller is:
function test()
{
var_dump($_POST);
}

And my view is:

<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
</head>
<body>
</body>
<script type="text/javascript">
$(document).ready(function(){
$.post("http://localhost/index.php/user_filters/test?name=aa");

});
</script>
</html>

And csrf is disable.
The parameters still does not reach the controller.

Thanks.
Reply


Messages In This Thread
RE: JQuery post parameters do not get to my controller - by talad - 04-11-2015, 06:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB