Welcome Guest, Not a member yet? Register   Sign In
$this->input->post in ci4
#3

(09-06-2021, 01:11 AM)InsiteFX Wrote: This is how its done in ci 4.

PHP Code:
$request = \Config\Services::request();

// leave PropertyName blank to get all properties.
$data = $request->getPost('PropertyName'); 

Code:
$request = \Config\Services::request();
$priority_array = $request->getPost('priority');
$id_array = $request->getPost('id');
$temp = array_combine($id_array, $priority_array);
print_r($temp);

Thank for your helping .User Guide made me confused  Big Grin
Reply


Messages In This Thread
$this->input->post in ci4 - by vohuuphuc - 09-05-2021, 08:58 AM
RE: $this->input->post in ci4 - by InsiteFX - 09-06-2021, 01:11 AM
RE: $this->input->post in ci4 - by vohuuphuc - 09-06-2021, 08:45 AM
RE: $this->input->post in ci4 - by ikesela - 09-06-2021, 11:15 AM
RE: $this->input->post in ci4 - by vohuuphuc - 09-07-2021, 08:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB