Question
Modify your application such that shipping charges are added to each order. Shipping charges are free for all orders totaling $ 30.00 or more. Otherwise
Modify your application such that shipping charges are added to each order. Shipping charges are free for all orders totaling $ 30.00 or more. Otherwise the charge is $ 5.00 per order.
body {
font-family: Tahoma;
}
div {
background-color: #00CCCC;
font-weight: bold;
}
p {
background-color: #CC66FF;
font-weight: bold;
}
h2 {
border: #003399;
font-weight: bold;
}
review your purchase
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
session_start();
ob_start();
}
$total = 0;
if (
isset($_POST['disc']) || isset($_POST['mug']) ||
isset($_POST['pen']) || isset($_POST['shirt'])
) {
if (isset($_POST['disc'])) {
echo "
" . "Axis of Symmetry (Compact Disc) " .
"$19.99";
$total += 19.99;
}
if (isset($_POST['mug'])) {
echo "
" . "coffee mug " . "$8.99";
$total += 8.99;
}
if (isset($_POST['pen'])) {
echo "
" . "pen set " . "$22.95";
$total += 22.99;
}
if (isset($_POST['shirt'])) {
echo "
" . "T-Shirt(XL) " . "$9.95";
$total += 9.95;
}
echo "
" . "your total purchase $" .
$total;
$_SESSION['total'] = $total;
}
?>
Music and More
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started