Bob's Auto Parts

Order Results

Order processed at 16:33, 14th March 2025

echo '

Your Order is as follows:

'; echo htmlspecialchars($tireqty).' tires
'; echo htmlspecialchars($oilqty).' bottles of oil
'; echo htmlspecialchars($sparkqty).' spark plugs
'; $totalqty = 0; $totalqty = $tireqty + $oilqty + $sparkqty; echo "

Items ordered:".$totalqty. "
"; $totalamount = 0.00; define('TIREPRICE', 100); define('OILPRICE', 10); define('SPARKPRICE', 4); $totalamount = $tireqty * TIREPRICE + $oilqty * OILPRICE + $sparkqty * SPARKPRICE; echo "Subtotal: $".number_format($totalamount,2)."
"; $taxrate = 0.10; // local sales tax is 10% $totalamount = $totalamount * (1 + $taxrate); echo "Total including tax: $".number_formaat($totalamount,2)."

"; $a = 56; echo gettype($a).'
'; settype($a, 'float'); echo gettype($a).'
'; int intval(mixed var[, int base=10]) float floatval(mixed var) string strval(mixed var) if ($totalqty == 0) { echo '

'; echo 'You did not order anything on the previous page!
'; echo '

' }else { echo htmlspecialchars($tireqty).'tires
' echo htmlspecialchars($oilqty).'bottles of oil
'; echo htmlspecialchars($sparkqty).'spark plugs
'; }