1

我正在使用下面的代码,但没有得到任何价值。我给出了 print_r($this->title); 我必须做什么才能获得价值。谢谢

            if(isset($_POST['is_ajax']) && $_POST['is_ajax']) {
            print_r($this->title);
        $respondentArray = array(
            'state' => $_POST['state'],
            'name' => $_POST['name'],
            'title' => $_POST['title'],
            'dline' => $_POST['directline'],
            'email' => $_POST['email'],
            'organization' => $_POST['organization'],
            'address' => $_POST['address'],
            'city' => $_POST['city'],
            'state1' => $_POST['state1'],
            'zip' => $_POST['zip'],
            'generalphone' => $_POST['generalphone'],
            'fax' => $_POST['fax'],
        );
        $this->session->set_userdata($respondentArray);
4

2 回答 2

2

i guess this is what you need

  echo $this->input->post('title') ;

$this->input->post(postedValues) this gets all the input values that is posted...

于 2013-07-29T09:56:47.927 回答
0

用于var_dump($this->title);测试

于 2013-07-29T10:25:24.620 回答