I am trying to use curlop_post to post $_POST to another server that does not have a public IP. I have the form pass all its data to an intermediary file that contains this code:
Expand|Select|Wrap|Line Numbers
- $ch = curl_init("http://oldserver.mycompany.com/somepage.php");
- curl_setopt($ch, CURLOPT_POST); //use the POST method
- curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST); //take the $_POST array
- and use those as the POST parameters for the curl request
- curl_exec($ch); //execute the request
im stuck.
help, if you can?
I am new to PHP, in over my head!! :P
Thanks a LOT.
J