security - Redirecting php post reply to client -


I have a webpage that allows the customer to enter some data. When the user submits the form, then my PHP script in the server now adds some other parameters that I do not want the client to be able to view and post their server B payment system. What I want to do should be seen in some other such question:

  customer - & gt; Server One Server A - & gt; Post - & gt; Server b client & lt; ------------------------ Server B   

for Server B, no session or nothing should be done To do this, it takes users directly to a form where they will set up their payment data How can I achieve this? Is there any alternative?

Thank you very much.

Whatever you are trying to do is not possible. Server B has no knowledge of the client, so there is no way to communicate with it. You should make it this way:

  Customer - & gt; Server One Server A - & gt; Post - & gt; Server B server A & lt; - Reply - Server B Client & lt; - Server A   

In (pseudo) code, on server A:

  function handle option ($ postdata) {$ answer = sendPostToServerB ($ mystery); Return $ answer; } $ r = handleRequest ($ _ POST); $ StaffToTendTokelit = Process ($ R); Echo $ staffToSantToContents;   

When you do this, beware of time problems if server B is slow, it can cause problems in the client. You can try to handle it in an Ajax call and give the user control of at least and the information that is going on.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -