Reading the parameters of an ajax link in PHP in codeigniter -
i new ajax. have link has 4 parameters 1 of these $str_post
initialized in controller:
$str_post="&ajax =1"; $str_post.="&province=".$this->input->post('province'); $str_post.="&city=".$this->input->post('city'); $str_post.="&name=".$this->input->post('name'); $this->ajax_pagination->make_search($this->case_model->case_paginations(),$starting,$url,$str_post);
by using function(make_search) sets $str_post
parameters of ajax pagination link. when echo $str_post
thing this:
&ajax=1&proince=all&city=all&name=all
now need these parameters , assign every of them in variables this:
$province=$str_post['province'];
but shows &
how can all
value? can 1 me?
try getting values way!
$province = $_post['province']; // if ajax type post
Comments
Post a Comment