-
ci form 데이터 가져오기CI4 2022. 7. 5. 09:08728x90반응형
# view 에서 form으로 넘긴 데이터 가져오기
1. post 로 넘긴 데이터
1) $this->request->getPost("html tag name");
2) $_POST["html tag name"];2. get로 넘긴 데이터
1) $this->request->getGet("html tag name");
2) $_GET["html tag name"];<View>
<input type="text" name="id" class="form-control" placeholder="아이디">
<Controller>
<? // POST $this->request->getPost("id"); $_POST["id"]; //GET $this->request->getGet("id"); $_GET["id"];
728x90반응형'CI4' 카테고리의 다른 글
ci 사용자 라이브러리 (0) 2022.07.07 ci 쿼리 결과 가져오기 (0) 2022.07.06 ci remap 함수 리매핑 함수 (0) 2022.07.04 ci query 실행 (0) 2022.07.01 ci4 db 연결 (0) 2022.06.30