Advertisement
Guest User

Untitled

a guest
Sep 8th, 2011
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. // Connect to Australia Post to retrieve a live shipping quote
  2. $validQuote = false;
  3. $ausPostURL = 'http://drc.edeliver.com.au/ratecalc.asp?';
  4. $postVars = array(
  5.     'Height' => $height,
  6.     'Length' => $length,
  7.     'Width' => $width,
  8.     'Weight' => $weight,
  9.     'Quantity' => 1,
  10.     'Pickup_Postcode' => $this->_origin_zip,
  11.     'Destination_Postcode' => $this->_destzip,
  12.     'Country' => $this->_destcountry,
  13.     'Service_Type' => $this->_deliverytype
  14. );
  15.  
  16. $ausPostURL .= http_build_query($postVars);
  17.  
  18. $result = PostToRemoteFileAndGetResponse($ausPostURL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement