Greets. {{Solved}} In order to get POST data you MUST use $this->formHidden in order to hold all the data. Even though variables are inside the they don't get passed if they aren't in some sort of form item.
I am unable to access post data in ZEND.
Path of User - START INDEX PAGE ->Submit Page ->Pay Page
I created a controller, extended the Zend Controller, and added an action called payAction. The user can go from the Index Page to the Submit Page. After I have all their data inside variables, I used a form and a submit button to go to the "pay page". However, I cannot get any of the POST data.
public function payAction() { $data = $this->getRequest(); } I have tried putting getRequest, getParam, getRawBody inside that controller function. In the page itself I have tried.
echo 'Hello'; echo $request; echo $data; echo $_POST['payZip']; echo $_POST['data']; echo $_POST[$data]; echo $request; echo $this->values['payZip']; echo $payZip; echo $this->values['shippingDone']; echo $stuff; Is there ANYTHING I can place in my controller or in my view in order to get my post data? I used a form method="post" and a button and it DOES allow me to get to the page. I can see Hello. But NONE of the post data is available.
Any assistance would be appreciated.
Thank you.
-- Update
$data = $this->getRequest(); $param = $this->_request->getParam('payZip'); if($this->getRequest()->isPost()) { print_r($this->_getAllParams()); echo $param; } Doing that gives me - HelloArray ( [controller] => wheel [action] => pay [module] => default [shipping] => UPS Ground [payPal] => Secure Payment System )
But I still can't print payZip... I did echo and nothing comes out.