I found the solution. so posting here in case anyone else encountered the same situation. i used the following code on the preview page:
$ch = curl_init($sub_req_url);
$_SESSION['$encoded'] = '';
// include GET as well as POST variables; your needs may vary.
foreach($_GET as $name => $value) {
$_SESSION['$encoded'] .= urlencode($name).'='.urlencode($value).'&';
}
foreach($_POST as $name => $value) {
$_SESSION['$encoded'] .= urlencode($name).'='.urlencode($value).'&';
}
// chop off last ampersand
$_SESSION['$encoded'] = substr($_SESSION['$encoded'], 0, strlen($_SESSION['$encoded'])-1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $_SESSION['$encoded']);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_exec($ch);
curl_close($ch);
And i used this code on the output page that shows you the acutal source code including the POSTed variables:
// create curl resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, "http://scorpiocollections.com/ebay/preview.php");
//return the transfer as a string
curl_setopt($ch, CURLOPT_POSTFIELDS, $_SESSION['$encoded']);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// $output contains the output string
$output = curl_exec($ch);
// close curl resource to free up system resources
curl_close($ch);