I try to connect Amex payment gateway. Here I want to submit post request to amex server and redirect to that page. I make request data from database and user inputs. Now i have request data. I use zend framework. How i send it as post request to amex server with redirect that page? Please help me.
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Tuesday, February 14, 2012
Send post request without form with redirct in PHP [closed]
Subscribe to:
Post Comments (Atom)
You can use cURL for that.
ReplyDeleteA good tutorial that covers your needs can be found here.
For Zend Framework you want to be looking at http client adapters:
ReplyDeletehttp://framework.zend.com/manual/en/zend.http.client.adapters.html
Look at the cURL adaptor, you should be able to use that to send data over post.
Redirecting in a Zend Controller:
$this->_helper->redirector->gotoRoute(array(
'module' => 'modulename',
'controller' => 'controllername',
'action' => 'actionname',
));