Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

Shopping Cart

My Shopping Cart

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions