// return $v; // } ?> <!DOCTYPE html> <html> <head> <title>Pricing</title> </head> <body> <h1>Here is yo shipping cost</h1> <?php $object = new Parcel($_GET["height"], $_GET["length"], $_GET["width"], $_GET["weight"]); $object_volume = $object->volume(); $object_weight = $object->getWeight(); $finalPrice = $object->totalPrice(); $object_height = $object->getHeight(); $object_width = $object->getWidth(); $object_length = $object->getLength(); if ($object_volume == 0 || $object_weight == 0) { echo "Please make sure all fields are completed."; } ?> <p>Volume of package: <?php echo $object_volume . " square inches" . " (" . $object_height . "in x " . $object_length . "in x " . $object_width . "in)"; ?> </p> <p>Weight: <?php echo $object_weight . " oz"; ?> </p>