[eluser]ci_user[/eluser]
Ok...totally strange. I'm sending the csrf_test_name value via ajax but I can not access it?
Code:
$.ajax({
type:"POST",
url: "http://localhost/mycontroller",
cache: false,
data: {
email: $("#email").val(),
csrf_test_name: $("input:hidden[name='csrf_test_name']").val()
},
At this point client side the value exists and I see it when I do:
Code:
alert($("input:hidden[name='csrf_test_name']").val());
Now in my controller for some reason the value is empty:
Code:
die($this->input->post('csrf_test_name'));
However, the email value is there:
Code:
die($this->input->post('email'));
If anybody can see a reason I can get the email value but not the csrf_test_name value I sure would appreciate it!