Zend Framework: How to POST data to some external page (e.g. external payment gate) without using form?

Using a form is the only method available. The RFC states that the user should explicitly agree to sending a POST (i.e. Click on a submit button).

I would like to have a user redirected to an external credit card gate. Of course I have to POST some user info to that gate, but I don't know how exactly can I do this. Using a form is the only method available.

The RFC states that the user should explicitly agree to sending a POST (i.e. Click on a submit button). I know that I could do this by generating a html form with hidden or read-only fields and have a user click "Submit" button.

But this solution is not perfect, because all the form data could be easily changed using e.g. It is no more secure that using a redirect as the header data can be modified without too much of a problem. There are even Firefox plugins to do it.

Thanks. So it appears that I have to go with a form. – Marcin Feb 12 '10 at 14:49 It's how it's done everywhere.

– Htbaa Feb 12 '10 at 15:25.

Use cURL to post data framework.zend.com/manual/en/zend.http.c....

Thanks. I'll have a look at it. – Marcin Feb 13 '10 at 5:04 This will not allow you to redirect the user to the payment gateway.

– Htbaa Feb 15 '10 at 14:56 depends on if you want to redirect. S question was merely to post data. Short of creating a you're own form, you send data via a post request with cURL – bonez Feb 17 '10 at 20:00.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions