I have a php page that will receive some variables from a form. I want this php page to then do an asynchronous server side post of some new variables to a third php page. I have done this before in vbscript but I can't seem to find a way to do this in PHP.
Page 1: has a form that will post some variables
Page 2: will receive this variables and post some new variables to a third php page. The post done from this page must be an asynchronous server side post. The post must be done from the php script.
Page 3: will receive the post from page 2 and this page is never seen by the end user.
I have done this before using vbscript but I can't replicate it with PHP. Below is my code in vbscript.
<%
xSeconPostValue = "variablename=variablevalue"
Set objHTTP = server.CreateObject("Microsoft.XMLHTTP")
objHTTP.open "post", "url"
objHTTP.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
objHTTP.send xSecondPostValue
%>
So the second page will post the values to the third page and this will be done asynchronously. This is all done in the server side so all actions are hidden to the end user.
Any help with this is greatly appreciated
objHTTP.send xSecondPostValue