I'm currently AJAX'ing a login form.
var data = $(this).serialize();
This is the data I'm sending, I get this with PHP using Codeigniter like so:
$ajax = $this->input->post('data');
This returns username=john&password=doe
as you'd expect.
How do I turn that into an array? I've tried doing unserialize()
and I get null.