Retrieve data from database with POST data

β€œIt has become appallingly obvious that our technology has exceeded our humanity.” β€” Albert Einstein

I need code to get POST data and read value so that I get a query result from Database. Simple to get that code written I only need code to read Post data value in controller and fetch query from database so that i retrieve data from database to another controller. I put clean code to put forward what need may be done so that I get result from query string and put value from POST data to controller fetch query from database and return a query string data to same controller different function.

public function filterSectors()


       $Sectors = $this->Sectors->newEmptyEntity();
      echo 'outside post';
     if ($this->request->is('post')) {
            $Sectors = $this->Sectors->patchEntity($Sectors, $this->request->getData());
            if ($this->Sectors->save($Sectors)) {
                $JobSeekers = $this->JobSeekers->find('all')->where(['sectors'=>$sectors['id']]);
                $this->Flash->success(__('The sector is a save.'));
                return $this->redirect(['controller'=>'Sectors', 'action' =>'applyPool']);
                $this->Flash->error(__('The user could not be saved. Please, try again.'));