User Shipping Info

Please fill out the following information so that we can give you shipping options:

Shipping Information

<?php
/****************************************************
** Get shipping rates and return to customer
** getUps.php
****************************************************/
session_start();
//get shipping quotes and send to customer
require_once("ups.php");

//get the shippers zip
$to_zip = $_GET['zip'];

$services = array( '01'=>'UPS Next Day Air', '02'=>'UPS Second Day Air', '12'=>'UPS Three-Day Select', '03'=>'UPS Ground');

$length = '15';
$width = '11';
$height = '3';
$weight = '3';
$dest_zip = $to_zip;

echo '<strong style="color:red">Offered shipping methods for Zip: "'.$to_zip.'"</strong><br />';

// get a shipping rate for each possible service
foreach ($services as $service=>$name) {
  $rate = ups($dest_zip,$service,$weight,$length,$width,$height);
  if($rate != "") {
   echo '<input type="radio" name="shipping" value="'.$name.'|'.$rate.'" style="width:15px;" /> '.$name.': ';
   echo '<strong>$'.$rate.'</strong><br />'."\n";
  }
}

?>