You do not quite understand, so I offer several solutions ...
If you need a simple POST value, you can access it using
$this->getRequest()->getPost('name');
From the context of the controller.
If you need a value from a form that was previously assigned, you can access it using
$form->get('elementName')->getValue();
However, if you use InputFilters, you need to get it with
$form->getInputFilter()->getValue('name');
Otherwise, the value you retrieve was not passed through the filters.
Daniel M
source share