hvorfor viser den ikke prisen
jeg har et script den skulle gerne vise prisen på de være kunden har vælgt'<html>
<head>
<title>bob´s auto part order results</title>
</head>
<body>
<center>
<h1>bob´s auto parts</h1>
<h2>order result</h2>
<?
$tm= $tireqty+ $oilqty+$sparkqty;
if ($tm==0)
{
echo"<font color=red>";
echo" you did not order anything on the priviose page!<br>";
echo"</font>";
}
else
{
echo "<P> order processed.";
echo date("H:i, jS F Y");
echo "<br>";
echo "your order is as follows";
echo "<br>";
}
echo $tireqty." tires <br>";
echo $oilqty." bottel of oil <br>";
echo $sparkqty." spark plugs <br>";
define ("TIRERPRICE",100);
define("OILPRICE",10);
define("SPARKPRICE",4);
$tprice=TIRERPRICE *$tireqty;
$oprice=$oilqty * $OILPRICE;
$sprice=$sparkqty * $SPARKPRICE;
echo"<p>";
echo "price of tires is ";
echo $tprice;
echo"<br>";
echo "price of oile is ";
echo $oprice;
echo "<br>";
echo "price of sparks is ";
echo $sprice;
echo "<P>";
echo "pris ialt ";
echo $tprice + $oprice +$sprice;
echo "<br>";
echo "price whit moms ";
$total = $tprice + $oprice +$sprice;
$totalm = $total * 1.25;
echo $totalm;
echo"<p> du har bestilt pices $tm of goods";
echo "<P>";
?>
</center>
</body>
