How to get the post parameter in the controller in Magento 2?

For getting the post parameter please use the below code how-to-get-the-post-parameter-in-the-controller-in-magento-2

You need to use this code in your execute function:

public function execute()
    $data = $this->getRequest()->getPostValue();

    echo "<pre>";


Please leave your comment for asking any question or suggestion.

Need Help? how-to-get-the-post-parameter-in-the-controller-in-magento-2