Skip to main content

Send post request without form with redirct in PHP [closed]



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.




Comments

  1. You can use cURL for that.

    A good tutorial that covers your needs can be found here.

    ReplyDelete
  2. For Zend Framework you want to be looking at http client adapters:

    http://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',
    ));

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?