테스트 사이트 - 개발 중인 베타 버전입니다

$this->input->post 값 확인 안됨

진경쓰 4년 전 조회 2,572

안녕하세요,, 어쩌다 보니 오늘또 질문글을 올리게 되었네요,,

아래와 같이 코드를 짯습니다. 이게 분명 되었다가 지금 다시 또 값을 전혀 받아오지 못하고 있는데 혹시 어느부분을  살펴 봐야할까요..?ㅠㅠㅠ

감사합니다~

 

view

</strong></p>

<p>            <input  type="hidden" name="posting_type" value="0">

            <td><input  type="hidden" name="report_day" value="<?=$detail->report_day?>"><?=$detail->report_day?>일</td>

            <td><input  type="hidden" name="hospital_id" value="<?=$detail->hospital_id?>"><?=$detail->hosp_name?></td>

            <td><input  type="hidden" name="last_month" value="<?=$detail->last_month?>"><?=$detail->last_month?>개</td>

            <td><input  type="hidden" name="total" value="<?=$detail->total?>"><?=$detail->total?>개</td></p>

<p><strong>

 

controller

</strong></p>

<p>$posting_data = array(

                                'report_day' => $this->input->post('report_day'),

                                'last_month' => $this->input->post('last_month'),

                            //    'posting_user_id' => $this->input->post('posting_user_id'),

                                'total' => $this->input->post('total'),

                                'posting_type' => $this->input->post('posting_type'),

                                'hospital_id' => $this->input->post('hospital_id'),

                            //    'posting_day' => $this->input->post('posting_day'),

                            ); </p>

<p><strong>

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

print_r($this->input->post(null, true));

값이 나오나 보세요.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

진경쓰
4년 전
넵~ print_r($this->input->post(null, true));로 확인해봤을때 그냥 array()라고 확인됩니다.. 이상하네요,,,ㅠ

댓글을 작성하려면 로그인이 필요합니다.

$posting_data  의 배열 값이 전부 post 된 값을 넣게 되어있는데

그럼 post 된 값이 있는지 먼저 확인해보시기 바랍니다

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

진경쓰
4년 전
넵 답변 감사합니다~

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인