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

(This post was last modified: 04-06-2015, 10:57 AM by casa.)

Perhaps put in your config file $config['csrf_protection'] = FALSE;
If its at TRUE, your are in codeigniter userguide a method with CSRF but i don't try it at this day.
link : http://www.codeigniter.com/userguide3/li...token_name

Then, you need to get your data in your controller :
PHP Code:
function create()
{
var_dump($_POST);
$this->form_validation->set_rules('new_loc_loc_name''Address''required|urldecode'); // tues on your data

if ($this->form_validation->run() == TRUE)
{
    
// get your data
    
$name $this->input->post('new_loc_loc_name'TRUE) ; // TRUE for xss_clean
    // call your method
    
$this->users_model->filter_create$name);  // you need to pass your param in your model method and build it for it
}
else
{
$this->load->view('filters/test');

Reply


Messages In This Thread
RE: JQuery post parameters do not get to my controller - by casa - 04-06-2015, 10:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB