hi,
i have the following code
i would like to be able to place a form on my website that will update the params above (except username and password) and return the search results based on the users form input.
any help greatly appreciated.
al
i have the following code
Code:
<?php
$XPost=
'<?xml version="1.0" encoding="UTF8" ?>
<Username>my username</Username>
<Password>my password</Password>
<DestinationID></DestinationID>
<ResortID></ResortID>
<HotelID></HotelID>
<RoomID></RoomID>
<Meal></Meal>
<CheckIn>2010-04-07</CheckIn>
<CheckOut>2010-04-15</CheckOut>
<Rooms>1</Rooms>
<Adults>1</Adults>
<Children>0</Children>
<Infants></Infants>
<SortBy>Price</SortBy>
<SortOrder>ASC</SortOrder>
</GethotelAvail>';
$ch =
curl_init('[URL unfurl="true"]http://www.my_url?'.'xml='.urlencode($XPost))[/URL]
;
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_NOBODY, 0);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
$responseInfo=curl_getinfo($ch);
curl_close($ch);
echo $response;
?>
i would like to be able to place a form on my website that will update the params above (except username and password) and return the search results based on the users form input.
any help greatly appreciated.
al