I am making a PHP payment script that needs to POST transaction results to another server and after that to redirect to another page.
Basicly the script have the transaction value SUCCES that needs to be POSTED to www.domain.com/transaction.php and after that to be redirected to "confirmation.php".
Can someone tell me how can I do that?
EDIT:
This is what I was looking for:
<?php
$r = new HttpRequest('http://example.com/form.php', HttpRequest::METH_POST);
$r->setOptions(array('cookies' => array('lang' => 'de')));
$r->addPostFields(array('user' => 'mike', 'pass' => 's3c|r3t'));
$r->addPostFile('image', 'profile.jpg', 'image/jpeg');
try {
echo $r->send()->getBody();
} catch (HttpException $ex) {
echo $ex;
}
?>