I’m trying to take some variables in php and redirect the user to a third party site with the variables sent as post vars. I know this would probably be easier with cookies but the third party is already set up to handle posts. Does anyone have any suggestions on how to do this?
Share
There are a couple techniques you could use. One is iterate through the POST vars and add to a form and resubmit the form perhaps using Javascript onLoad.
Another option would be to use PHP and cURL and send the data to the remote site:
http://www.php.net/manual/en/function.curl-setopt.php