I'm trying to make this script work,
I want to display the results for the user who sent a form in the TARGET site,
The final results in the TARGET site should be displayed in the target site not on my side. Any ideas?
<?
$ch = curl_init('http://www1.octopustravel.com/searchAction.form');
$post = "brandCode=LON_OTUK01_ONL&searchName=Singapore&checkInDate=01/12/2009&checkOutDate=10/12/2009&isFromHomePage=Y&naviName=home";
curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml; charset=UTF-8"));
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
$result = curl_exec($ch);
curl_close($ch);
print $result;
?>